subject

Suppose that you run a simple consulting business. Your clients are mostly clustered on the East and West coasts. From month to month, you could either run your business from an office in NYC or an office in San Francisco. You have some budget numbers to help: if you run your business out of NYC in month i, you expect to incur costs N_i, and likewise costs S_i for San Francisco. Furthermore, every time you move from one office to another, you incur a moving cost, M.

Given monthly cost estimates N_i, S_i, for i=1 ... n, and the moving cost M,
Find the best schedule of where to work each month.
For example, suppose that M = 10, and
i=1 i=2 i=3 i=4
N_i 1 3 20 30
S_i 50 20 2 4then the optimal schedule is [NY, NY, SF, SF].
Write an algorithm (based on dynamic programming) to solve this problem.
Write the program using C++

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
You know the right answer?
Suppose that you run a simple consulting business. Your clients are mostly clustered on the East and...
Questions
question
Mathematics, 27.10.2019 03:43
question
Mathematics, 27.10.2019 03:43
question
History, 27.10.2019 03:43
Questions on the website: 13722362