인류 역사에 존재하는 모든 게임 마스터하기
검색
로그인 등록
Name
0 / 2730
0
알림
99

내 계정

환경설정 로그아웃

알림

새 알림 없음.

언어

English 繁體中文 简体中文 Español 日本語 Português Deutsch العربية français Русский भारतीय
메뉴

토론방 > 게임 요령

하노이 타워의 대형 더미 이동

글쓴이 Novel Games
2007-01-25 22:33:45
#1
Novel Games
(번역 - Microsoft) N 조각의 큰 더미를 이동하는 트릭은 다른 더미에 첫 번째 N - 1 조각을 이동 한 다음 대상 더미에 마지막 조각을 이동 한 다음 대상 더미에 N - 1 조각을 이동하는 것입니다.

N - 다른 더미에 1 조각을 이동하려면 먼저 첫 번째 N - 2 조각 등을 이동해야합니다.

일반적으로 홀수 의 조각을 더미로 옮기려면 첫 번째 조각을 그 더미로 옮기는 것입니다. 그리고 짝수의 조각을 더미로 옮기려면 첫 번째 조각을 다른 더미로 옮기는 것입니다.
(원본) Moving Large Piles in Tower of Hanoi

The trick to move a large pile of n pieces is to move the first n - 1 pieces to another pile, then move the last piece to the target pile, and then move the n - 1 pieces to the target pile.

To move the n - 1 pieces to the other pile, first you will need to move the first n - 2 pieces, and so on.

As a rule, if you want to move an odd number of pieces to a pile, the first step is to move the first piece to that pile; and if you want to move an even number of pieces to a pile, the first step is to move the first piece to another pile.
글쓴이 Novel Games
2007-01-25 22:33:45
좋아요
댓글

답글 게시

답변을 게시하려면 로그인해야 합니다
로그인 등록
#1에 대한 답변
내용을 입력하세요
글쓴이 %s
댓글 올리기
입력 중...
답변 게시 실패. 다시 시도하세요. 닫기