Skip to main content
Log in

Graphs S(n, k) and a Variant of the Tower of Hanoi Problem

  • Published:
Czechoslovak Mathematical Journal Aims and scope Submit manuscript

Abstract

For any n ≥ 1 and any k ≥ 1, a graph S(n, k) is introduced. Vertices of S(n, k) are n-tuples over {1, 2,. . . k} and two n-tuples are adjacent if they are in a certain relation. These graphs are graphs of a particular variant of the Tower of Hanoi problem. Namely, the graphs S(n, 3) are isomorphic to the graphs of the Tower of Hanoi problem. It is proved that there are at most two shortest paths between any two vertices of S(n, k). Together with a formula for the distance, this result is used to compute the distance between two vertices in O(n) time. It is also shown that for k ≥ 3, the graphs S(n, k) are Hamiltonian.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. H.-J. Bandelt, H.M. Mulder, E. Wilkeit: Quasi-median graphs and algebras. J. Graph Theory 18 (1994), 681-703.

    Google Scholar 

  2. N. Claus (= E. Lucas): La Tour d'Hanoi, Jeu de calcul. Science et Nature 1(8) (1884), 127-128.

    Google Scholar 

  3. M.C. Er: An analysis of the generalized Towers of Hanoi problem. BIT 23 (1983), 295-302.

    Google Scholar 

  4. J. Feigenbaum, A.A. Schäffer: Finding the prime factors of strong direct product graphs in polynomial time. Discrete Math. 109 (1992), 77-102.

    Google Scholar 

  5. A.M. Hinz: The Tower of Hanoi. Enseign. Math. 35 (1989), 289-321.

    Google Scholar 

  6. A.M. Hinz: Shortest paths between regular states of the Tower of Hanoi. Inform. Sci. 63 (1992), 173-181.

    Google Scholar 

  7. A.M. Hinz: Pascal's triangle and the Tower of Hanoi. Amer. Math. Monthly 99 (1992), 538-544.

    Google Scholar 

  8. A.M. Hinz, A. Schief: The average distance on the Sierpiński gasket. Probab. Theory Related Fields 87 (1990), 129-138.

    Google Scholar 

  9. W. Imrich, H. Izbicki: Associative products of graphs. Monatsh. Math. 80 (1975), 277-281.

    Google Scholar 

  10. S. L. Lipscomb: A universal one-dimensional metric space. TOPO 72—General Topology and its Applications, Second Pittsburgh Internat. Conf., Volume 378 of Lecture Notes in Math.. Springer-Verlag, New York, 1974, pp. 248-257.

    Google Scholar 

  11. S. L. Lipscomb: On imbedding finite-dimensional metric spaces. Trans. Amer. Math. Soc. 211 (1975), 143-160.

    Google Scholar 

  12. S. L. Lipscomb, J. C. Perry: Lipscomb's L(A) space fractalized in Hilbert's l 2 (A) space. Proc. Amer. Math. Soc. 115 (1992), 1157-1165.

    Google Scholar 

  13. U. Milutinović: Completeness of the Lipscomb space. Glas. Mat. Ser. III 27(47) (1992), 343-364.

    Google Scholar 

  14. U. Milutinović: A universal separable metric space of Lipscomb's type. Preprint Series Univ. of Ljubljana 32 (1994), 443.

    Google Scholar 

  15. E. Wilkeit: Isometric embeddings in Hamming graphs. J. Combin. Theory Ser. B 50 (1990), 179-197.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

About this article

Cite this article

Klavžar, S., Milutinović, U. Graphs S(n, k) and a Variant of the Tower of Hanoi Problem. Czechoslovak Mathematical Journal 47, 95–104 (1997). https://doi.org/10.1023/A:1022444205860

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1023/A:1022444205860

Keywords

Navigation