8 very poisonous substances named s1 to s8 are kept in a safety room.
The substances are kept in ascending order (s1,s2,s3,s4,s5,s6,s7 and s8).
In the room there are 3 robots.
First robot can "rotate left" the order of the substances.
If the order is (a,b,c,d,e,f,g,h) the robot will make it (b,c,d,e,f,g,h,a)
Second robot can split the substances into 2 part then reverse the order of each part.
If the order is (a,b,c,d,e,f,g,h) the robot will make it (d,c,b,a,h,g,f,e)
But the robot is a bit broken, so the resulting order is a bit wrong.
The resulting order will become (d,c,a,b,h,g,f,e).
Third robot can split the substances into 4 part then reverse the order of each part
If the order is (a,b,c,d,e,f,g,h) the robot will make it (b,a,d,c,f,e,h,g)
Questions
If the 2nd robot is not broken, how many minimum step needed by using the robots to reverse the order into descending order? Show the steps!
After the 2nd robot is broken, how many minimum step needed by using the robots to reverse the order into descending order? Show the steps!
Question
jasen
8 very poisonous substances named s1 to s8 are kept in a safety room.
The substances are kept in ascending order (s1,s2,s3,s4,s5,s6,s7 and s8).
In the room there are 3 robots.
First robot can "rotate left" the order of the substances.
If the order is (a,b,c,d,e,f,g,h) the robot will make it (b,c,d,e,f,g,h,a)
Second robot can split the substances into 2 part then reverse the order of each part.
If the order is (a,b,c,d,e,f,g,h) the robot will make it (d,c,b,a,h,g,f,e)
But the robot is a bit broken, so the resulting order is a bit wrong.
The resulting order will become (d,c,a,b,h,g,f,e).
Third robot can split the substances into 4 part then reverse the order of each part
If the order is (a,b,c,d,e,f,g,h) the robot will make it (b,a,d,c,f,e,h,g)
Questions
If the 2nd robot is not broken, how many minimum step needed by using the robots to reverse the order into descending order? Show the steps!
After the 2nd robot is broken, how many minimum step needed by using the robots to reverse the order into descending order? Show the steps!
Edited by jasenLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.