A Study on a Novel Graph Visualization for the Tower of Hanoi

하노이의 탑의 새로운 그래프 시각화에 대한 연구

  • 조청운 (동서대학교 디지털콘텐츠학부 디지털영상제작전공) ;
  • 강대기 (동서대학교 컴퓨터정보공학부 컴퓨터공학전공)
  • Received : 2010.12.03
  • Accepted : 2010.12.30
  • Published : 2010.12.31

Abstract

In this paper, we introduce extended problems of Tower of Hanoi (ToH) and propose a novel visualization method to express a state space of ToH. As for the extended problems, we introduce multi-peg ToH, multi-stack ToH, and regular state ToH. The novel visualization method in this paper is a natural extension of Hanoi graph visualization. In the proposed method, we assign one Cartesian coordinate point per each disk to provide an unified visualization that the marks on a link and the changes of a state should correspond with a peg position of a disk. Compared with Hanoi graph, the generated graph by the proposed method is isomorphic if we remove links of forbidden move, which indicates that our method is a generalization of Hanoi graph and thus is more expressive. To help the understanding of the readers, we show the generated graphs by our method when the number of disks is 2 and 3.

본 논문에서는 하노이의 탑 (Tower of Hanoi; ToH) 문제를 확장한 문제들을 소개하고, ToH 문제의 상태 공간을 그래프로 표현하기 위한 새로운 방안을 제시하고자 한다. 확장한 문제들로는 기둥의 수를 늘린 경우, 디스크 스택의 수를 늘린 경우, 그리고 일반 상태 간의 이동에 대한 세 가지를 소개하고, 다른 변종 문제들을 소개하고자 한다. 우리가 본 논문에서 제시한 새로운 표현 방안은 기존의 하노이 그래프 표현에 대해 확장된 방식의 그래프 표현을 제시하는 것이다. 제안된 표현에서는 각 디스크마다 하나의 직교좌표를 부여해 줌으로써 링크의 표시와 상태의 변화가 디스크가 어느 기둥에 배치되어 있는가와 시각적으로 일치된 시각화를 가능하게 해 준다. 제안된 표현을 기존의 하노이 그래프와 비교해 보면, 제안된 표현에서 디스크를 옮길 수 없는 링크를 제거하면 기존의 하노이 그래프와 isomorphic하다. 따라서, 제안된 표현은 기존의 하노이 그래프를 확장하여 표현력을 고도화한 것임을 알 수 있다. 제안된 표현에 대한 독자들의 이해를 돕기 위해, 우리는 본 논문에서 디스크의 개수가 2와 3인 경우에 대한 제안된 표현의 시각화 예를 제시하였다.

Keywords

References

  1. E. Lucas. "Nouveaux Jeux Scientifiques de M. Edouard Lucas," La Nature. 17. 2e semestre. pp. 301-303, 1889.
  2. A. Newell, H. A. Simon, Human problem solving, Englewood Cliffs, NJ: Prentice-Hall, 1972.
  3. M. Faloutsos, P. Faloutsos and C. Faloutsos, "On power-law relationships of the Internet topology," ACM SIGCOMM Computer Communication Review, 29(4), 1999.
  4. J.-P. Bode, A. M. Hinz, "Results and Open Problems on the Tower of Hanoi," Congressus Numerantium, 139, pp. 113-122, 1999.
  5. P. K. Stockmeyer. "Variations on the Four-Post Tower of Hanoi Puzzle," Congressus Numerantium. 102. pp. 3-12, 1994.
  6. J. S. Frame, B. M. Stewart, "A Solution to Monthly Problem 3918 [1939. p.363]," American Mathematical Monthly, 48, pp. 216-219, 1941. https://doi.org/10.2307/2304268
  7. X. Chen, J. Shen, "On The Frame-Stewart Conjecture about the Towers of Hanoi," Siam Journal of Computing, 33(3), pp. 584-589, Mar. 2004. https://doi.org/10.1137/S0097539703431019
  8. A. M. Hinz, "An Iterative Algorithm for the Tower of Hanoi with Four Pegs," Computing, 41, pp. 133-140, 1989.
  9. R. E. Korf, "Linear-Time Disk-Based Implicit Graph Search," Journal of the ACM, 55(6), Article 26. pp. 1-40, Dec. 2008.
  10. V. Mascolo. "Stacking puzzle and method for playing same." United States Patent #7566057, 2009.
  11. A. M. Hinz, "Shortest Paths Between Regular States of the Tower of Hanoi," Information Sciences, 63. pp. 173-181, 1992. https://doi.org/10.1016/0020-0255(92)90067-I
  12. D. G. Poole, "The Towers and Triangles of Professor Claus (or, Pascal Knows Hanoi)," Math. Mag. 67, pp. 323-344, 1994. https://doi.org/10.2307/2690991
  13. D. Romik, "Shortest Paths in the Tower of Hanoi and Finite Automata," Siam Journal of Discrete Math, 20(3), pp. 610-622, Aug. 2006. https://doi.org/10.1137/050628660
  14. A. M. Hinz, A. Kostav, F. Kneissl, F. Surer, A. Danek "A Mathematical Model and a Computer Tool for the Tower of Hanoi and Tower of London Puzzles," Information Sciences, 179, pp. 2934-2947, 2009. https://doi.org/10.1016/j.ins.2009.04.010
  15. Ben Houston and Hassan Masum. "Explorations in 4-peg Tower of Hanoi." Carleton University Technical Report TR-04-10. November 2004.