Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 04:40, debo4965
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
image
Computers and Technology, 22.06.2019 20:00, jayjay5246
What is the term for water wave that is created by an underwater earthquake
Answers: 1
image
Computers and Technology, 23.06.2019 11:50, itaheart101
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
image
Computers and Technology, 23.06.2019 22:00, elijah1090
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
Do you know the correct answer?
Suppose you're consulting for a company that manufactures PC equipment and ships it to distributors...

Questions in other subjects:

Konu
Mathematics, 08.09.2020 08:01
Konu
English, 08.09.2020 08:01
Konu
Mathematics, 08.09.2020 08:01