Mathematics Homework Solutions
Problem
#54287

Dynamic Programming : Write an Algorithm to Minimize Cost

There are n trading posts along a river.  At any of the posts you can rent a canoe to be returned at any other post downstream.  (It is next to impossible to paddle against the current.)  For each possible departure point i and each possible arrival point j the cost of a rental from i to j is known.  However, it can happen that the cost of renting for i to j is higher that the total cost of a series of shorter rentals.  In this case you can return the first canoe at some post k between i and j and continue your journey in a second canoe.  There is no extra charge for changing canoes in this way.

Give an efficient algorithm to determine the minimum cost of a trip by canoe for each possible departure point i to each possible arrival point j.  In terms of n, how much time is needed by your algorithm?


Solution Summary

An algorithm that minimizes cost is written.  

Solution
What is this?
By OTA - Overall OTA Rating
Yupei Xiong, PhD - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$7.98)
Included in Download
  • Plain text response
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Algorithm to convert to binary - The problem is from Numerical Methods. Please show each step of your solution and tell me the theorems, definitions, etc. if you use any. 3. The following algorithm... Please see attached.
  • Discrete Mathematics and its Applications - 14. a) What is a recursive algorithm? b) Describe a recursive algorithm for computing the sum of n numbers in a sequence.
  • optimization algorithm - this is reserve for a Specific OTA you can solve the problem using genetic algorithm(GA),but do you think you can get near the solution in the the "Result_2_Xugang" PDF file i sent.please describe ...
  • Need Mat lab program for Bisection Algorithm - I need BISECTION ALGORITHM written in MATLAB. Could you please send the MATLAB program as soon as possible.
  • Algorithm - Let T[1..n] be a sorted array of distinct integers, some of which may be negative. Give an algorithm that can find an index i such that 1 <= i <= n and T[i] = i, provided such an index exists. Your a ...
Browse