• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [OT] Towers of Hanoi with four pegs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Towers of Hanoi with four pegs


  • Subject: Re: [OT] Towers of Hanoi with four pegs
  • From: Clark Cox <email@hidden>
  • Date: Thu, 29 Apr 2004 16:24:44 -0400

On Apr 29, 2004, at 15:15, Eric Czarny wrote:

I know this is slightly off topic, but I couldn't find any place else to find help. Anyway, for computer science I need to write a recursive function to solve the Towers of Hanoi with four pegs. However, I have spent all day working on a solution but can't seem to figure it out. If any of you have code to solve this problem it would help me out a great deal as the assignment is due tonight at 11:59:59 EST.

I don't mean to sound insensitive, but you'd better get to work. Asking others for code to solve this problem is dishonest and will not teach you whatever it was that you should have learned in class. When you get out in the "real world", you will not always have someone that will do your work for you, so by doing this now, you are doing a disservice to your future self as well as to any future employers or co-workers. My advice would be to go and talk to your professor, or another student in your class, for more help, and if that is not possible:

1) Sit down with pencil and paper, away from your computer
2) Work out for yourself, how *you* would solve the towers of Hanoi problem (i.e. not how you would tell a computer to do it)
3) Then, after you've worked out the process outside of the computer, it should be relatively simple to translate that algorithm into source code.


--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >[OT] Towers of Hanoi with four pegs (From: Eric Czarny <email@hidden>)

  • Prev by Date: Re: mouse events
  • Next by Date: Re: CamelBones
  • Previous by thread: Re: [OT] Towers of Hanoi with four pegs
  • Next by thread: Re: [OT] Towers of Hanoi with four pegs
  • Index(es):
    • Date
    • Thread