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 11:00
What are two of the most common reasons that peolpe who need mental health care do not access it?
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
question
Computers and Technology, 24.06.2019 18:00
Which of the following is an example of synchronous communication? a) e-mail b) voicemail c) telephone conversation d) text message.
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, 01.04.2021 01:00
question
Health, 01.04.2021 01:00
question
History, 01.04.2021 01:00
question
English, 01.04.2021 01:00
question
Mathematics, 01.04.2021 01:00
question
French, 01.04.2021 01:00
Questions on the website: 13722360