Suppose that there are 2*n disks, How could be Hanoi problem solved if odd numbers are disks on bar “A” and even disks are on bar “B”?
please Let me know if more information is needed.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
move disk 1 onto disk 2
then move the resulting “proper” hanoi towner 1,2 onto disk 3 using the classic algorithm.
Then move the proper tower 1,2,3 onto 4. Continue until you get the full proper tower, then use classic algorithm to move to the destination.
EDIT1:
Example (incomplete)
This is curious because the last step is a little bit of an optimization; what I described would try to build 1-2-3-4-6 but we jump directly to building 1-2-3-4-5. This probably means something.