Question: EC 1 . In a prison, there is a door b / w any pair of adjacent cells and one exit guarded by a guard
EC In a prison, there is a door bw any pair of adjacent cells and one exit guarded by a guard G One prisoner is a maniac M which kills anybody he can see when he enters a cell. If M returns to the cell with his victim, then he loses consciousness and stops. In the evening all inmates and the guard went to sleep in their cells. In the morning, maniac M is gone and all other prisoners with the guard were found dead in their cells. Show the route of the maniac.
EC Give an algorithm that exchanges memory units without extra memory
HW Given rocks of different weight and lever scales, in tests sort the rocks by weight.
Describe the method that finds the correct order by the th comparison.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
