|
|
|
|
|
|
|
|
CTK Exchange
Lydia
guest
|
Nov-25-04, 11:01 AM (EST) |
|
"Towers of Hanoi"
|
Erm, well, I've been working on the towers of hanoi and I've reached a bit of a block. I know how you work out the minimum number of moves when you have the previous number (eg you have 7 moves for 3 disks and you use it to work out the number of moves for 4 disks). However, I was wondering whether anyone could provide any clues on how you go about working out the minimum number of moves for... say, 100 disks without knowing the previous answer. I can't even seem to get started on finding the formula... Thanks very much. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
rewboss
guest
|
Nov-25-04, 01:08 PM (EST) |
|
1. "RE: Towers of Hanoi"
In response to message #0
|
I know the formula, but I can't think of a way of giving you any clues without giving it away. Except that it has to do with powers. I do have a story about it, though. In 1884, a certain man called de Parville described in La nature, part I, pp 285f, what must be the ultimate Tower of Hanoi. Paraphrasing, the dome of the great temple at Benares marks the centre of the world, and beneath it a huge Tower of Hanoi affair with three diamond needles each a cubit high, and 64 discs of gold. Day and night, the priests move discs from needle to needle, and when the "game" is complete, the world will come to an end. If the priests work in shifts on a 24-hour schedule, transfer one disc per second and never, ever make a mistake, that works out at almost six billion centuries, making this the most optimistic prophecy of the end of the world on record. When you find the formula, you can check. For reference: the usual scientific guess for the end of the world -- when our sun expands to a red giant and swallows up the earth -- is about eight billion years. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
|
|
maik
guest
|
Nov-26-04, 09:11 AM (EST) |
|
4. "RE: Towers of Hanoi"
In response to message #0
|
Hi, if you want to figure it out for yourself and just want a clue, a good aproach in solving recurences is to carefully "watch yourself over the shoulder" while figuring. When you have number a, what do you do with it to get a and in which "prominent" sequences is the relationship between an element and its successor roughly similar? good luck |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
R.Kesavan.
guest
|
Nov-30-04, 08:53 AM (EST) |
|
5. "RE: Towers of Hanoi"
In response to message #0
|
Here is the formula for calculating the number of moves least required for shifting 'n' discs satisfying the conditions of the problem: it is 2^n-1= 2raised to the power 'n'-1. In your case for shifting 100 discs, it is 2^100-1 which is a gigantic and gargantuan number to write. Thanks, R.Kesavan. kesavan7777@yahoo.com |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
Stephen
guest
|
Nov-03-06, 06:34 PM (EST) |
|
6. "RE: Towers of Hanoi"
In response to message #0
|
The formula for Towers is 2^^n - 1 (2 to the n (n rings) then subtract 1 from that answer) eg, 3 rings should take minimum number of moves: 2^^3 = 8 8 - 1 = 7 7 moves for three rings 2^^100 = 1.3 x E30 then subtract 1 (which really doesn't make a difference.) Here's something to think about. If it takes one second to make a move, and you have 27 rings, you don't have enough time in your life to complete the process, even if you make the minimum number of moves. |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
Dhruv
guest
|
Oct-03-07, 01:19 PM (EST) |
|
7. "RE: Towers of Hanoi"
In response to message #0
|
2^n-1 this the formula for the proof this can be done by induction assume that for k discs, it takes m moves then for k+1 disks there will be 2k+1 moves. now by recurence relations u can easily get the reqd result |
|
Alert | IP |
Printer-friendly page |
Reply |
Reply With Quote | Top |
|
|
You may be curious to have a look at the old CTK Exchange archive. Please do not post there.
Copyright © 1996-2018 Alexander Bogomolny
|
|