
FastDownward used Planning Domain Definition Language to represent the problems, and utilized A* search with the selective-max and landmark-cut heuristics, using the input to bound the maximum solution length, in order to solve the Hanoi problem. Further details can be found at the solvers’ websites, as listed in the teams’ descriptions online. The ASP Competition had six participants, including BPSolver 3 3 3 The following implementation details, and the participants’ programs, can be obtained at the team description pages, located at. This decreases the number of operations used during the recursive calls, and is helpful when backtracking to test a different solution. It does not matter what the sizes of the p disks are, nor does it matter which pegs are being used as the current start and destination pegs, assuming the intermediate and destination pegs are logically empty, meaning that they do not contain disks smaller than the largest one being moved. Sub-problems are represented in such a way that the same problem has the same representation and can share answers through tabling.
HANOI TOWERS 4 PEGS HOW TO
Once the program knows how to move p disks between two pegs, it can check the table to determine how to move any other set of p disks between any two pegs. The other benefit of using tabling is that it reduces the number of calculations. By storing states in memory, the program can check the table to see if a state has already been encountered. If states are visited more than once, the program could be stuck cycling between multiple states, possibly by just repeatedly moving a single disk between two pegs. Once a state is visited, it should not be revisited. The first benefit is that tabling prevents infinite loops.
