Your algorithm should be based on dynamic programming


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 e?ciently.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Your algorithm should be based on dynamic programming
Reference No:- TGS0119983

Expected delivery within 24 Hours