Tower Of Hanoi

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Nov 2004
Posts: 68
Reputation: harshchandra is an unknown quantity at this point 
Solved Threads: 1
harshchandra harshchandra is offline Offline
Junior Poster in Training

Tower Of Hanoi

 
0
  #1
Nov 19th, 2004
Can anyone tell me the complete algorithm analysis of Tower of Hanoi for n pegs and n disks.I really need it
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,590
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 710
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Tower Of Hanoi

 
0
  #2
Nov 19th, 2004
>Can anyone tell me the complete algorithm analysis of Tower of Hanoi
Sure:
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. cout<<"I'm too lazy to do my own work\n";
  8. cout<<"I'm too stupid to realize that nobody will do my work for me\n";
  9. cout<<"I'll never amount to anything because I'm a cheating slacker"<<endl;
  10. }
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 16
Reputation: phr0stbyt3 is an unknown quantity at this point 
Solved Threads: 1
phr0stbyt3 phr0stbyt3 is offline Offline
Newbie Poster

Re: Tower Of Hanoi

 
0
  #3
Nov 19th, 2004
wow... i think i found a site for your "analysis"

www.owned.gg
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 11
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Tower Of Hanoi

 
0
  #4
Nov 19th, 2004
I went into Google and typed

algorithm analysis of Tower of Hanoi

and it came right up with a bunch of interesting sites.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Tower Of Hanoi

 
0
  #5
Nov 20th, 2004
or just click on the Gooooogle adds that show up in this thread for a lot of hot deals in and about Hanoi
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,036
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 131
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: Tower Of Hanoi

 
0
  #6
Nov 20th, 2004
Whoa! Let's not be this rude please folks. I did a google search for towers of hanoi and a bunch of informative links came up:

http://www.cut-the-knot.org/recurrence/hanoi.shtml
http://mathforum.org/dr.math/faq/faq.tower.hanoi.html

They should answer your question.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 11
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Tower Of Hanoi

 
0
  #7
Nov 20th, 2004
Hey! That's what I said! I wasn't trying to be rude, just helpful!

Google is a wonderful resource for algorithms.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Tower Of Hanoi

 
0
  #8
Nov 20th, 2004
just trying to make people think for themselves Dani... There's way too much "I don't want to think, I just want a canned solution so I won't fail my test" attitude these days.
If those people graduate without writing code they'll become problems for us as colleagues and we'll end up with more work as we'll have to do their work as well leading to unpaid overtime, missed deadlines, etc. etc.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,036
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 131
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: Tower Of Hanoi

 
0
  #9
Nov 20th, 2004
Sorry guys for the confusion. I was actually leaning my comment towards Narue.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 68
Reputation: harshchandra is an unknown quantity at this point 
Solved Threads: 1
harshchandra harshchandra is offline Offline
Junior Poster in Training

Re: Tower Of Hanoi

 
0
  #10
Nov 20th, 2004
Thanks guys , at last i got the solution.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC