Describe the structure of the subproblem

Assignment Help Computer Engineering
Reference no: EM132132965

There is a small company which in some months maintains an office in Aukland (code A) and in others in Brisbane (code B), and moves back and forth between these two cities (they can only afford to have one office operating at a time).

This company wants to have the cheapest possible location plan - the two cities have different operating costs and these costs can change from month to month.

We are given M, a fixed cost of moving between the two cities, and lists A = (a1, . . . , an) and B = (b1, . . . , bn).

Here ai is the cost of operating out of Aukland in month i, and bi is the cost of being in Brisbane that month.

Suppose that M = 10, A = (1, 3, 20, 30), and B = (50, 20, 2, 4). If the location plan is (A, A, B, B), its cost will be 1 + 3 + 10 + 2 + 4 = 20. On the other hand, the cost of the plan (B, B, A, B) is 50 + 20 + 10 + 20 + 10 + 4 = 114.

The goal here is to (start to) devise a dynamic programming algorithm which, given M, A, and B, determines the cost of the optimal plan. The plan can start in either city, and end in either city. Note that you will likely need two subproblems, which will be mutually recursive.

a) Describe the structure of the subproblem.

b) Find a recurrence for the optimal value of the subproblem in terms of smaller subproblems.

Reference no: EM132132965

Questions Cloud

Time on the internet on the phone : In a sample of 12 kids, their mean time on the internet on the phone was 3.9 hours with a standard deviation of 0.7 hours.
Sample standard deviation : Want the 98% confidence interval when the sample size is 50, sample mean is 42 and sample standard deviation is 5. Keep three decimal places in your response.
How this technology can be used effectively in a business : Describe how this technology can be used effectively in a business setting. Are there any drawbacks to using social networks in a business setting?
Write a class that implements this interface : Write a class that implements this interface while not using any number type member variables (e.g., int, float, etc).
Describe the structure of the subproblem : Find a recurrence for the optimal value of the subproblem in terms of smaller subproblems.
Which web site is your favorite : Which site would you recommend or use to help a small business wanting to get into e-commerce? Why?
Which is violated in context which may not be appropriate : Identify at least one LP assumption which is violated in this context which may not be appropriate when the decision variables relate to number of storage units
How do you go about adding an alert : How do you go about adding an alert (both setting up a new alert and adding one to a monitored system)?
How can it be used to create a sourcing plan : What is employee profiling? How can it be used to create a sourcing plan?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd