PDA

View Full Version : towers of hanoi


robertcolberg
05-07-2010, 02:02 PM
he towers of hanoi was a ancient story of 3 towers and 64 rings in beginning all 64 disk are on one tower. the goal is to move all disk to one of the other towers, using the third tower as a spare. there are two strict rules
1. only one disk may be moved at a time
2. a larger disk may never be placed on top of a smaller disk

type in towers of hanoi game in google and play then play this alice program and watch it solve the puzzle
this puzzle only has 20 disk but still takes forever to complete
it took me about 15 minutes to make i might not update it it was just for fun and wanted to share
i know i can make it alot better (time ending at end of program and not keep running) but see what you think:D

jediaction
05-07-2010, 03:24 PM
Its ok. But yah, definatly needs work

zenteo
05-07-2010, 04:22 PM
Wow that's pretty impressive!
It does 13 moves per second on my computer and I don't think you could get it much faster in Alice. 20 rings are much enough for a sandalone program, you could try it with lesser rings.

King Gamer(gorit)
05-07-2010, 04:56 PM
LOL! mine did 15 while running a bunch of other aplicaations. My rig does have 4 gigs of ram though and a dual core 2.2 ghz processor(not a great processor but for a laptop it is decent). I think it is a great program and great way to show how fast alice can process things.

Niteshifter
05-07-2010, 05:04 PM
I remember doing this in a recursion assignment.

Also, it doesn't matter how many cores you have since I'm pretty sure that Alice doesn't multi-thread anything.

zenteo
05-07-2010, 05:41 PM
LOL! mine did 15 while running a bunch of other aplicaations. My rig does have 4 gigs of ram though and a dual core 2.2 ghz processor(not a great processor but for a laptop it is decent). I think it is a great program and great way to show how fast alice can process things.

Ye of course you could get it faster on different comupters, but I getting it faster on the same computer by changing the code in Alice is worse.

I remember doing this in a recursion assignment.

Also, it doesn't matter how many cores you have since I'm pretty sure that Alice doesn't multi-thread anything.

Ye you're right. Alice takes 50% of my comp's processor power. That means 100% of one of my two processors.

jediaction
05-07-2010, 06:03 PM
My computer is very powerful, and it has 1 1/2 terribites of memory which is enough to fit 300 mayas installed!

Dameria
05-07-2010, 06:10 PM
My computer is very powerful, and it has 1 1/2 terribites of memory which is enough to fit 300 mayas installed!

It does not have 1.5 terabytes memory. It might have 1.5 terabytes disk space, but definitly not memory. Most computers now a days have 4GB memory, but 8 is not uncommon either.

jediaction
05-07-2010, 06:17 PM
It does not have 1.5 terabytes memory. It might have 1.5 terabytes disk space, but definitly not memory. Most computers now a days have 4GB memory, but 8 is not uncommon either.

Sorry, thats what i ment, i always get those messed up

Powerhouse64
11-05-2011, 11:20 PM
My computer is very powerful, and it has 1 1/2 terribites of memory which is enough to fit 300 mayas installed!

And I hate to burst your bubble, jedi, but the amount of disc space you have doesn't equate to your computer's power. I could hook up an external hard drive to a crappy computer and say that I have tons of disc space, but that doesn't make the computer any faster or more powerful. Just letting you know so that you don't get in trouble with a forum that may not be as forgiving!:p

Mr Kidnapper
11-05-2011, 11:26 PM
I can prove you wrong there. Even though this is a superbump of a 1 year old thread. Many budget build desktops use 5400 RPM hard drives. Many TB range hard drives go 7200RPM. The high end HDDs run at 10800-15000 RPM. Essentially, depending on your RPM, your computer's power could change. Though all the rules change if you own a SSD.

Powerhouse64
11-05-2011, 11:38 PM
I can prove you wrong there. Even though this is a superbump of a 1 year old thread. Many budget build desktops use 5400 RPM hard drives. Many TB range hard drives go 7200RPM. The high end HDDs run at 10800-15000 RPM. Essentially, depending on your RPM, your computer's power could change. Though all the rules change if you own a SSD.

You, sir, just proved me wrong. I was thinking purely in terms of processing speed, but you are completely correct here. That's quite humbling! That totally slipped my mind, and now I feel quite rude for jumping on Jedi's back like that! I actually do appreciate you saying this, because you're totally right, and Jedi deserves an apology from me.

Dear Jedi,

I sincerely apologize for attempting to prove you wrong. My intention was not to harm or defame you, however it may be interpreted that way. I ask that you disregard any ill feelings that you hold towards me, in hopes that we may remain fellows.

Kindly yours,
-Powerhouse64

Crap! That's as close to a cursive signature I could get :rolleyes:

x2495iiii
11-06-2011, 12:05 AM
But that doesn't make what powerhouse said any less true.

Fact is you CAN have lots of storage space and still have a computer that can't access that space very quickly. Sure, there are exceptions, and you could argue that a large amount of storage space generally means a high RPM (or access time, given an SSD), but the fact of the matter is one impressive statistic does not an impressive computer make.

Mr Kidnapper
11-06-2011, 12:16 AM
Well if Pinocchio had a long enough nose you'd say he had a pretty impressive nose wouldn't you? *Cough.*
Also problem: Many people misinterpret the idea of memory. People are viewing it as RAM in any situation while they should be viewing it as 'space' in general. HDD space's true name is called Physical Memory, and it is nonvolatile memory. This is noticeably less misinterpreted in foreign countries such as Japan, where they ask "How much memory does this hard drive have?" rather than "How big is this hard drive?" RAM is volatile memory attached directly to the motherboard and is designed to be assigned, reassigned, and cleared in cycles you can hardly detect.

x2495iiii
11-06-2011, 07:09 AM
True, but again, a large hard drive does not a supercomputer make.

In fact, the better the quality hard drive you have, the better your other equipment has to be to utilize any extra functionality the hard drive would offer. A computer is only as strong as its weakest link.

Powerhouse64
11-06-2011, 09:59 AM
I really need to stop commenting on these old threads and derailing them XD. Last night was a slow night on the forums and I entertained myself by going through old threads 'cause I'm cool like that :cool:

GameKid
11-12-2011, 10:17 PM
I don't get it. Is this just a test of computer speed? It doesn't have any user-based events, so I can't do anything.

DensetsuNoKaboom
11-13-2011, 07:13 AM
I think it's supposed to be a solution to a puzzle.

GameKid
11-13-2011, 12:28 PM
Oh. Simply a soloution.
I believe it would be easier to put a soloution on another format, say, GIF, or a video with sound?

Dulphins
02-04-2012, 04:16 PM
How do I get the disks set on the first cone initially to begin?

hydude777
02-06-2012, 12:28 AM
My computer is very powerful, and it has 1 1/2 terribites of memory which is enough to fit 300 mayas installed!


lol...300 mayas XD

DensetsuNoKaboom
02-06-2012, 05:54 AM
That's too many Mayas!

primooth
02-27-2012, 08:17 AM
As long as the computer works its best...there's nothing problem at all.
--------------------------
Learn more about Data Destruction (http://itamg.com) and PC Recycling (http://itamg.com).