Bookmark the Dictionary of Words Online

towers of hanoi definition from the Dictionary of Words

Home Contact us New words
Web Images MP3/Audio Video Directory News
Help
Terms of Service
RESULTS IN:    English Spanish

Found 1 hit - Term: towers of hanoi, Database: *, Strategy: prefix
[1] : The Free On-line Dictionary of Computing (27 SEP 03)
towers of hanoi
     
         a classic computer science problem, invented by
        edouard lucas in 1883, often used as an example of
        recursion.
     
        "in the great temple at benares, says he, beneath the dome
        which marks the centre of the world, rests a brass plate in
        which are fixed three diamond needles, each a cubit high and
        as thick as the body of a bee.  on one of these needles, at
        the creation, god placed sixty-four discs of pure gold, the
        largest disc resting on the brass plate, and the others
        getting smaller and smaller up to the top one.  this is the
        tower of bramah.  day and night unceasingly the priests
        transfer the discs from one diamond needle to another
        according to the fixed and immutable laws of bramah, which
        require that the priest on duty must not move more than one
        disc at a time and that he must place this disc on a needle so
        that there is no smaller disc below it.  when the sixty-four
        discs shall have been thus transferred from the needle on
        which at the creation god placed them to one of the other
        needles, tower, temple, and brahmins alike will crumble into
        dust, and with a thunderclap the world will vanish."
     
        the recursive solution is: solve for n-1 discs recursively,
        then move the remaining largest disc to the free needle.
     
        note that there is also a non-recursive solution: on
        odd-numbered moves, move the smallest sized disk clockwise.
        on even-numbered moves, make the single other move which is
        possible.
     
        "mathematical recreations and essays", w w r ball, p. 304
     
        the rec.puzzles archive
        http://rec-puzzles.org/sol.pl/induction/hanoi.
     
        2003-07-13
     
     
see also:
recursion lt;the rec.puzzles archivegt; 

Results 1 - 1 of 1 found about towers of hanoi:

Hanoi >> H Words
Hanoi, definition of term: Hanoi
hanoi_pag1.html


Last accessed:2008/10/07 14:33:58 [Total processing time: 0 seconds]
Myspace Layouts for Girls My Space
Middle East Business España México Puerto Rico Costa Rica Argentina Directorio
Dictionary online database provided by dict.org