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

  Algorithm to find maximum sum of contiguous sublist

Using dynamic programming, write an algorithm to find the maximum sum of contiguous sublist of a given list of n real values.

  Computing total number of keys needed in symmetric cipher

Determine the total number of keys that are needed for organization if symmetric cipher is used.

  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.

  Graph in which every node is pivotal for at least two nodes

Give an example of a graph in which every node is pivotal for at least two di fferent pairs of nodes. Explain your answer.

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  C++ program to evaluate expressions combining set union

Create a C++ program to evaluate expressions combining set union, set intersection and parentheses

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Explaining augmented red-black tree

Consider T be augmented red-black tree, where each node x has attribute x.size, which is number of internal nodes in subtree rooted at x. Given such augmented red-black tree T.

  Describe sorting algorithms and how they work

Describe sorting algorithms and how they work

  Explaining elementary operations used in algorithm

How many elementary operations are used in algorithm given below? The elementary operations are comparison operations (such as > and

  Factors-principles considering indecency regulation issues

What factors and principles should the federal government take into account when considering indecency regulation issues?

  Steps of asymmetric encryption algorithms to read message

Using only asymmetric encryption algorithms write down any steps taken by Bob which permit him to read the message.

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