Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

[ 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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started