subject

Suppose you're consulting for a company that manufactures PC equipment and ships it to distributors all over the country. For each of the next n weeks, they have a projected supply si of equipment (measured in pounds), which has to be shipped by an air freight carrier. Each week's supply can be carried by one of two air freight companies, A or B Company A charges a fixed rate r per pound (so it costs r s to ship a week's supply s:). Company B makes contracts for a fixed amount c per week, independent of the weight. However, contracts with company B must be made in blocks of four consecutive weeks at a time. A schedule, for the PC company, is a choice of air freight company (A or B) for each of the n weeks, with the restriction that company B, whenever it is chosen, must be chosen for blocks of four contiguous weeks at a time. The cost of a schedule is the total amount pair to company A and B, according to the description above. Give a polynomial-time algorithm that takes a sequence of supply values s1,82 and returns a schedule of minimum cost. For example, if r = 1, c = 10 and the sequence of values is 11, 9, 9, 12, 12, 12, 12, 9, 9, 11, then the optimal schedule would be A, A,A, B,B, B,B, A,A, A

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 10:00
Each time you save a document, you will need to type in the file type in which it should be saved you can select the save button to save it with the same file name if it has been previously saved you will need to select the location to save the file you will need to use the save as dialog box
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
How does computer network work in a paragraph
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
Two technicians are discussing a resistance measurement. technician a states that components being measured should be removed or isolated from the circuit. technician b states that power to the circuit should be disconnected when measuring resistance. which technician is correct?
Answers: 1
question
Computers and Technology, 25.06.2019 06:20
In your pest busters game, how does player 2 move the ship 2 object? a pressing the w and s keys b. pressing the up arrow and down arrow keys c. moving the mouse from side to side d. moving the mouse up and down select the best answer from the choices provided
Answers: 1
You know the right answer?
Suppose you're consulting for a company that manufactures PC equipment and ships it to distributors...
Questions
question
History, 09.11.2020 19:40
question
Mathematics, 09.11.2020 19:40
question
History, 09.11.2020 19:40
Questions on the website: 13722360