Algorithm on dynamic programming-minimize amount of walking

Assignment Help Data Structure & Algorithms
Reference no: EM1353971

We are going on a trip along the Appalachian trail. We have a list of all possible campsites that we can camp in along the way (say n). We want to do this trip in exactly k days, stopping k - 1 nights to camp. Our goal is to plan this trip so that we minimize the maximum amount of walking done in a single day. In other words, if our trip involves 3 days of walking, and we walk 11, 14, 12 miles on each day respectively, the cost is 14. Another schedule that involves walking 11, 13, 13 miles on each day has cost 13. The locations of the campsites are speci?ed in advance, and we can only camp at a campsite. Your algorithm should be based on dynamic programming and run efficiently.

Reference no: EM1353971

Questions Cloud

Explain how you think these trends have affected : Explain how you think these trends have affected our overall economic well-being (think unemployment, wage rates, etc.) in recent years.
Illustrate when a cold snap hits florida : Illustrate when a cold snap hits florida, the proce of orange juice rises in supermarkets throughout the country
Explain the final category is lunches and inexpensive : Explain The final category is lunches and inexpensive sandwiches and which you expect to total 20,000 units at an average price
Illustrate what is the revenue at the old price : A product has an arc elasticity of -0.8. at a price of $7.00, 1000 units are sold per period. In order to sell 1200 units, what will the new price be. Illustrate what is the revenue at the old price ($7.00)and the new price.
Algorithm on dynamic programming-minimize amount of walking : Our goal is to plan this trip so that we minimize the maximum amount of walking done in a single day. Your algorithm should be based on dynamic programming and run efficiently.
Explain the type of organization : Explain the type of organization you are using and describe the type of work involved and Identify the safety and health hazards that you think exist.
Estimate both when trying to determine a country economic : specific examples of what would affect each, and a discussion of why it is more accurate to estimate both when trying to determine a country's economic success.
Question about healthcare organizations service strategy : Prepare and describe the healthcare organization's service strategy. In particular, link your service strategy to the creation of a healing environment and developing a culture of customer service.
Illustrate what happens to output and the price level : Illustrate what happens to output, the price level, and the expected price level in both the short run and the long run.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Writing algorithm which ?nds xbest

Provide an O(n) algorithm which ?nds xbest such that distbest:= ∑i=1 to n|xbest - xi| is as small as possible.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Addition and subtraction of numbers in binary

Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits

  Algorithm to read arbitrary number of data records

Write the algorithm to read arbitrary number of data records, each comprising name, age, and code.

  Process of insertion into a heap-implemented priority queue

Explain the process of insertion into a heap-implemented priority queue, and informally explain its complexity and the process of removal from a heap-implemented priority queue, and informally explain its complexity.

  Computing hash value for message

For a message, he computes the hash value H = (VChar 1 x VChar 2 x VChar 3 ...x VChar N) mod(26).

  Explain sorting algorithm which is optimal in cost

Explain a sorting algorithm which is optimal with respect to this cost model and uses O(n) space. That is, time used by algorithm should exactly match lower bound

  Processor sharing to worse performance than fcfs

Create a second experiment answering the question "Is it possible for processor sharing to have worse performance than FCFS? "

  Data structures assignment requiring c++ program

You should build enough new roads such that if City A was reachable from City B via some old roads, City A must be reachable from City B via some new roads.

  What do you meant by an rfp

Select a specific category of vertical applications to investigate. Use the Internet and any other sources of information you might have to study some of the different products that are available in that category.

  Determine computational complexity of algorithm

Describe the algorithm in psuedo-code. You should give thought to what data structures(s) make sense for e client implementation. Determine computational complexity of your algorithm.

  Compare the average behavior of insertion sort

Compare the average behavior of insertion sort for n elements with that of the n insertions into an initially-empty straight array implementation of a priority queue

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