Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/1596550.1596555acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
research-article

Functional pearl: la tour d'Hanoï

Published: 31 August 2009 Publication History

Abstract

This pearl aims to demonstrate the ideas of wholemeal and projective programming using the Towers of Hanoi puzzle as a running example. The puzzle has its own beauty, which we hope to expose along the way.

Supplementary Material

JPG File (functionalpearllatourdhanoionvimeo.jpg)
MP4 File (functionalpearllatourdhanoionvimeo.mp4)

References

[1]
Backhouse, Roland, and Maarten Fokkinga. 2001. The associativity of equivalence and the Towers of Hanoi problem. Information Processing Letters 77:71--76.
[2]
Bird, Richard, and Oege de Moor. 1997. Algebra of Programming. London: Prentice Hall Europe.
[3]
Buneman, Peter, and Leon Levy. 1980. The Towers of Hanoi problem. Information Processing Letters 10(4-5):243--244.
[4]
Er, M.C. 1983. An analysis of the generalized Towers of Hanoi problem. BIT 23:429--435.
[5]
Gardner, Martin. 1972. Mathematical games: The curious properties of the Gray code and how it can be used to solve puzzles. Scientific American 227(2):106--109. Reprinted, with Answer, Addendum, and Bibliography, as Chapter 2 of Knotted Doughnuts and Other Mathematical Entertainments, W. H. Freeman and Co., New York, 1986.
[6]
Hinze, Ralf. 2008. Functional Pearl: Streams and Unique Fixed Points. In Proceedings of the 2008 International Conference on Functional Programming, ed. Peter Thiemann, 189--200. ACM Press.
[7]
Knuth, Donald E. 2005. The Art of Computer Programming, Volume 4, Fascicle 2: Generating All Tuples and Permutations. Addison-Wesley Publishing Company.
[8]
Korittky, Joachim. 1998. Functional METAPOST. Diplomarbeit, Universitat Bonn.
[9]
Stockmeyer, Paul K. 2005. The Tower of Hanoi: A bibliography. Available from http://www.cs.wm.edu/~pkstoc/biblio2.pdf.

Cited By

View all
  • (2018)Batcher's odd-even merging network revealedJournal of Functional Programming10.1017/S095679681800016328Online publication date: 4-Jun-2018
  • (2017)Local refinement typingProceedings of the ACM on Programming Languages10.1145/31102701:ICFP(1-27)Online publication date: 29-Aug-2017
  • (2017)Local refinement typingProceedings of the ACM on Programming Languages10.1145/31102701:ICFP(1-27)Online publication date: 29-Aug-2017

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ICFP '09: Proceedings of the 14th ACM SIGPLAN international conference on Functional programming
August 2009
364 pages
ISBN:9781605583327
DOI:10.1145/1596550
  • cover image ACM SIGPLAN Notices
    ACM SIGPLAN Notices  Volume 44, Issue 9
    ICFP '09
    September 2009
    343 pages
    ISSN:0362-1340
    EISSN:1558-1160
    DOI:10.1145/1631687
    Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 31 August 2009

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Hanoi graph
  2. gray code
  3. projective programming
  4. sierpinski gasket graph
  5. sierpinski graph
  6. towers of Hanoi
  7. wholemeal programming

Qualifiers

  • Research-article

Conference

ICFP '09
Sponsor:
ICFP '09: ACM SIGPLAN International Conference on Functional Programming
August 31 - September 2, 2009
Edinburgh, Scotland

Acceptance Rates

Overall Acceptance Rate 333 of 1,064 submissions, 31%

Upcoming Conference

ICFP '25
ACM SIGPLAN International Conference on Functional Programming
October 12 - 18, 2025
Singapore , Singapore

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)6
  • Downloads (Last 6 weeks)0
Reflects downloads up to 09 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2018)Batcher's odd-even merging network revealedJournal of Functional Programming10.1017/S095679681800016328Online publication date: 4-Jun-2018
  • (2017)Local refinement typingProceedings of the ACM on Programming Languages10.1145/31102701:ICFP(1-27)Online publication date: 29-Aug-2017
  • (2017)Local refinement typingProceedings of the ACM on Programming Languages10.1145/31102701:ICFP(1-27)Online publication date: 29-Aug-2017

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media