Posts

Showing posts with the label plantation

The Camel and Banana Puzzle

The owner of a banana plantation has a camel. He wants to transport his 3000 bananas to the market, which is located after the desert. The distance between his banana plantation and the market is about 1000 kilometer. So he decided to take his camel to carry the bananas. The camel can carry at the maximum of 1000 bananas at a time, and it eats one banana for every kilometer it travels.



The Camel and Banana Puzzle

What is the most bananas you can bring over to your destination?


As many as 'these' numbers of bananas can be saved!

The Camel and Banana Puzzle : Solution


What was the puzzle? 

 Let A be the starting point and B be the destination in this transportation. If the camel is taken with 1000 bananas at start, to reach the point B which is 1000 km away from A, it needs 1000 bananas. So there will be no bananas left to return back to point A.

That's why we need to break down the journey into 3 parts.



The Camel and Banana Puzzle Solution

Part 1 :

For every 1 km the camel needs to -

1. Move ahead 1 km with 1000 bananas but eat 1 banana in a way.

2. Leave 998 bananas at the point and take 1 banana to return back to previous point.

3. Pick up another 1000 bananas and move forward while eating 1 banana.

4. Drop 998 bananas at the same point. Return back to previous point by consuming 1 banana.

5. Pick left over 1000 bananas and move 1km forward while consuming 1 banana to same point where 998 + 998 bananas are dropped. Now, the camel doesn't need to  return back to previous point. So, 998 + 998 + 999 are carried to the point.

That is for every 1km, the camel needs 5 bananas.

After 200 km from point A, the camel eats of 200x5 = 1000 bananas and at this point the part 1 ends.


-------------------------------------------------------------------------------------------------
 

PART 2 :

1. Move ahead 1 km with 1000 bananas but eat 1 banana in a way.

2. Leave 998 bananas at the point and take 1 banana to return back to previous point.

3. Pick up another 1000 bananas and move forward to the point where 998 bananas left while eating 1 banana.

Now, the camel needs only 3 bananas per km.

So for next 333 km, the camel eats up 333x3 = 999 bananas.


-------------------------------------------------------------------------------------------------
 

PART 3 :

So far, the camel has travelled 200 + 333 = 533 km from point A and needs to cover 1000 - 533 = 467 km more to reach at B.

Number of bananas left are 3000 - 1000 - 999 = 1001.

Now, instead of wasting another 3 bananas for next 1 km here, better drop 1 banana at the point P2 and move ahead to B with 1000 bananas. This time the camel doesn't need to go back at previous points & can move ahead straightaway.

For the remaining distance of 467 km, the camel eats up another 467 bananas and in the end 1000 - 467 = 533 bananas will be left.


-------------------------------------------------------------------------------------------------
Follow me on Blogarama