Question: [ Dynamic Programming 1 ] ( 1 6 points ) There are n sites for a franchise along a long road at positions ( x

[Dynamic Programming 1](16 points)
There are n sites for a franchise along a long road at positions (x1,dots,xn) and you can assume that ri5kmF[k]1,dots,kx1.
There is a rule in the franchise handbook that itis forbidden for two franchises can be within 5 miles of each other.
Each franchise site has a projected revenue ri.
You wish to determine the maximum amount of total projected revenue of a set of franchise sites you can open that follow the constraints that two franchises cannot be within 5km apart.
Step 1: Description of subproblems
Let F[k]be the maximum projected revenue from the franchises 1,dots,k.
Step 2: Base Case(s)(2 points)
Step 3: Recursion (with justification or case analysis)(8 points)
Step 4: ordering (2 point)
Step 5: form of output (2 point)
Step 6: runtime analysis (2 points)
 [Dynamic Programming 1](16 points) There are n sites for a franchise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!