Hanoi problem: 4 Pillars, if the number of the tower A,b,c,d Four, now to move the n disk from a all to D, moving rules unchanged

Source: Internet
Author: User

The solving procedure of four-column Hanoi tower problem. Thinking of solving problems: such as a,b,c,d four pillars. To move the nth disk of column A to the target column (D-Pillar), the upper part is divided into two parts, the upper part moves to the B-pillar, the lower half to the C-pillar, and the nth disk to the target pillar, then the C-pillar plate is moved to the target pillar and the B-pillar plate is moved to the target pillar Detail place: When the upper part is moved to the B-pillar, its middle variable column is two selected. While the lower half moves to the C-pillar, it has only one middle-variable pillar (because a pillar has been occupied by the upper part). B,c also moves to the target column in the same vein.

Hanoi problem: 4 Pillars, if the number of the tower A,b,c,d Four, now to move the n disk from a all to D, moving rules unchanged

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.