Towers of Hanoi
6 papers · 14 extracted observations · planning · Markdown · CSV · JSON API
Also indexed as: towers-of-hanoi
Metricweight vector adjustments (3)training trials (3)average expansions required to find a solution (2)run times (2)maximum disk space used (2)cpu seconds t (1)
Showing 2 of 2 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence |
|---|---|---|---|---|---|
| 2015 | with subgoals proposed | run-times | 11.57 s | disks=8 · subgoals=3 per subproblem | Value Iteration with Options and State AggregationSource quoteL162: For r disks, our state representation in the Towers of Hanoi is an r-tuple, where each element corresponds to a disk and takes values from \{1,2,3\}, denoting the peg.\footnote{Note that the state representation itself disallows placing a larger disk on top of a smaller one.} There are three actions, two for moving the smallest disk and one for moving a disk between the remaining two pegs. It is known that VI for this problem takes 2^r iterations to converge. To speed up the iteration, we introduced the following state abstraction. There are r-2 sub-problems of size 2,...,r-1. First, we solve the problem with 2 disks, i.e. our abstraction only considers the position of the two smallest disks, ignoring the rest. There are three subgoals, one for placing the two disks on each of the pegs. Then, once we obtained three models for the subgoals, we use them to solve the sub-problem of size 3, ignoring all disks except the three smallest ones. Again, there are three subgoals. We proceed until we solve the problem with r disks. For each subgoal, we need 4 iterations (Three moves and the 4th is required for the convergence criterion). The total number of iterations is 4× 3 × r, i.e. it is linear in the state space. For 8 disks this means the following speed-up: 11.57 s (with subgoals) vs. 51.65 s (model VI) vs. 23.45 s (plain VI). We note however, that the time complexity of the algorithm with subgoals is still exponential in r, because whereas the number of iterations is only linear, in each iteration we need to iterate the whole state space, which is exponential.\footnote{However, this problem is not particular to our approach --- every algorithm that purports to compute the value function for each state will have computational complexity at least as high as the number of such states.} For a stochastic version, the run-times were 357.52 s for model VI, 27.31 s for plain VI and 21.71 s for computing the same optimal value function with options with aggregation. |
| 2015 | plain VI baseline | run-times | 23.45 s | disks=8 | Value Iteration with Options and State AggregationSource quoteL162: For r disks, our state representation in the Towers of Hanoi is an r-tuple, where each element corresponds to a disk and takes values from \{1,2,3\}, denoting the peg.\footnote{Note that the state representation itself disallows placing a larger disk on top of a smaller one.} There are three actions, two for moving the smallest disk and one for moving a disk between the remaining two pegs. It is known that VI for this problem takes 2^r iterations to converge. To speed up the iteration, we introduced the following state abstraction. There are r-2 sub-problems of size 2,...,r-1. First, we solve the problem with 2 disks, i.e. our abstraction only considers the position of the two smallest disks, ignoring the rest. There are three subgoals, one for placing the two disks on each of the pegs. Then, once we obtained three models for the subgoals, we use them to solve the sub-problem of size 3, ignoring all disks except the three smallest ones. Again, there are three subgoals. We proceed until we solve the problem with r disks. For each subgoal, we need 4 iterations (Three moves and the 4th is required for the convergence criterion). The total number of iterations is 4× 3 × r, i.e. it is linear in the state space. For 8 disks this means the following speed-up: 11.57 s (with subgoals) vs. 51.65 s (model VI) vs. 23.45 s (plain VI). We note however, that the time complexity of the algorithm with subgoals is still exponential in r, because whereas the number of iterations is only linear, in each iteration we need to iterate the whole state space, which is exponential.\footnote{However, this problem is not particular to our approach --- every algorithm that purports to compute the value function for each state will have computational complexity at least as high as the number of such states.} For a stochastic version, the run-times were 357.52 s for model VI, 27.31 s for plain VI and 21.71 s for computing the same optimal value function with options with aggregation. |