+1 (218) 451-4151
glass
pen
clip
papers
heaphones

A native Australian named Anatjari wishes to cross a desert carrying only a single water bottle….

A native Australian named Anatjari wishes to cross a desert carrying only a single water bottle….

A native Australian named Anatjari wishes to cross a desert carrying only a single water bottle. He has a map that marks all the watering holes along the way. Assuming he can walk k miles on one bottle of water, design an efficient algorithm for determining where Anatjari should refill his bottle in order to make as few stops as possible. Argue why your algorithm is correct.