Task 3
There are 3 cannibals (meat eaters) and 3 missionaries (priests/noblemen) who have to move to the other side of the lake. Note that when there are more cannibals on one side than missionaries, the cannibals eat them. You have to transport all the 6 safely to the other side of the lake. Only two people can sit in the boat at a time. Write down clearly all the steps you followed to solve this problem.
Solution:
* Take one Cannibal and one Missionary to the other side of the river.
* Now take two Missionaries to the other side of the river.
* Finally take the remaining two Cannibals to the other side of the river.
* Thus the required task has been accomplished in this way safely.
Task 4
You are given two jugs, a 4-gallon one and a 3-gallon one. Neither has any measuring marker on it. Initially both jugs are empty.
You can:
* Fill up a jug to its full capacity from the tap
* Put the contents of one jug into the other to its full capacity, e.g., if the 3-gallon jug is empty and 4-gallan jug has 4 gallons then you can put 3 gallon in smaller jug and the bigger jug will have one gallon left.
* Empty a jug into the sink
Your goal is to get exactly 2 gallons of water in the 3-gallon jug and zero gallons in the 4...
No comments