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 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
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, 28.08.2019 19:50
question
Mathematics, 28.08.2019 19:50
Questions on the website: 13722359