Talk:The five pillars puzzle

From Wikipedia, the free encyclopedia

[edit] Still a lot of work to be done

Well, .. I know this article still lacks a lot in order to be a proper wikipedia article. Anyhow, after coding the solution, I thought this is a prety cool puzzle and that it ought to be in wikipedia. The most important thing that are left are (in my opinion):

  1. origin of this problem
  2. some good textual description of the problem
  3. improve the verbosity of the printing of the code
  4. links to other related problems, sites.

It might be the case that this article exist already as an article with a different name in wikipedia. Also, the name of the article might not be the best one and it should be moved. I'll be happy to get help..ori 23:12, 11 October 2006 (UTC)

[edit] Similarity with other puzzles

Do the Towers of Hanoi puzzle, the Baguenaudier puzzle, and this puzzle all have the same solution? They seem quite similar to me and all can be solved using recursion. I am only a beginner programmer and have a hard time decoding code. Perhaps a pseudocode would be more helpful to other readers. Leon math 22:08, 7 December 2006 (UTC)

Well, this solution is very similar to the solution of the Baguenaudier puzzle but differs from the Towers of Hanoi's solution (which is simpler). Of course, they all use recursion but here, it is mutual recursion (two subroutines - each one calling the other) while in Hanoi's solution it is a simple recursion (that calls itself twice). Indeed, I should have added a skeleton of the code, or a pseudo code ... maybe when I have more time.. see my answer in my talk page
Ori 22:44, 10 December 2006 (UTC)