Friday, February 6, 2009

Word Problem about Distance travelled by a Camel with some Constraints

Topic : Word Problem on Distance

Question : A camel must travel 1000 miles across a desert to the nearest city. She has 3000 bananas but can only carry 1000 at a time. For every mile she walks, she needs to eat a banana. What is the maximum number of bananas she can transport to the city?

Answer :
Suppose the camel does this:
1. Pick up 1000 bananas.
2. Carry them one mile into the desert, eating 1 on the way.
3. coming back 1 mile and eating 1 banana;
4. pick up 1000 bananas and carry one mile into the desert , eating 1 banana;
5. coming back 1 mile and eating 1 banana;
6. pick up 1000 bananas and carry one mile into the desert , eating 1 banana;
At the end of this, there will be 2995 bananas, which are 999 miles from the city.
The camel will also be 999 miles from the city.Camel will need 5 bananas to transfer all the bananas 1 mile away…
5 as for 1st 1000 he'll go n come back then for another 1000 he'll go n come back but for last 1000 he'll only go as nothing will be left behind…
For second mile too it'll take 5 bananas…
Now it'll require 5 bananas per mile for total banana count > 2000and for banana count <= 2000 it'll eat 3 bananas…
and for <= 1000 it'll eat 1 banana….
so 1st 1000 bananas will be finished in 1000/5 = 200 Miles next 1000 in 1000/3 = 334 Miles…finally he'll have 1000 bananas and 466 miles to go…
At B camel will have 534 bananas


Hope the explanation helps you to solve the problem, if you have any queries leave your comments.

No comments:

Post a Comment