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 14 of 14 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence |
|---|---|---|---|---|---|
| 2016 | Sorting-based algorithm (DDD) proposed | maximum disk space used | 283 GB | pegs=4 · discs=21 · search=exhaustive breadth-first · algorithm=sorting-based DDD | Comparing Search Algorithms Using Sorting and Hashing on Disk and in MemorySource quoteL185: 283 GB |
| 2016 | Hash-based algorithm (DDD) proposed | maximum disk space used | 415 GB | pegs=4 · discs=21 · search=exhaustive breadth-first · algorithm=hash-based DDD | Comparing Search Algorithms Using Sorting and Hashing on Disk and in MemorySource quoteL189: 415 GB |
| 2015 | SelectScript vanilla approach with nested `move` functions proposed | Runtime | 10.09 sec s | RAM=8 GB · disks=3 · execution=one-core sequential · processor=Intel Core i5-4200U | Reasoning in complex environments with the SelectScript declarative languageSource quoteL572: iterate over all possible configurations.{(Runtime: \SI{10.09}{sec}})}] |
| 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 | Greedy best-first search (unit-cost h=d) baseline | Average expansions required to find a solution | 36,023 expansions | pegs=4 · disks=12 · problems=51 · cost-model=unit cost · pattern-database=disjoint patterns of 4 and 8 disks | Speedy versus Greedy SearchSource quoteL49: 36,023 |
| 2015 | Greedy best-first search (cost heuristic h) baseline | Average expansions required to find a solution | 4,663 expansions | pegs=4 · disks=12 · problems=51 · move-cost=n² · cost-model=square costs | Speedy versus Greedy SearchSource quoteL57: 4,663 |
| 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. |
| 2013 | A* with Incremental KKAdd (ratio 10^-1) proposed | CPU seconds (T) | 4.33 CPU seconds | pegs=4 · disks=14 · pattern-databases=bottom 12 disks and top 2 disks · backward-expansion-ratio=10^-1 | Robust Bidirectional Search via Heuristic ImprovementSource quoteL341: 4.33 |
| 1991 | I1 (integrated TD/SP) proposed | weight-vector adjustments | 35 adjustments | disks=3 | Two Kinds of Training Information For Evaluation Function LearningSource quoteL270: 35 |
| 1991 | I1 (integrated TD/SP) proposed | weight-vector adjustments | 131 adjustments | disks=4 | Two Kinds of Training Information For Evaluation Function LearningSource quoteL271: 131 |
| 1991 | I1 (integrated TD/SP) proposed | weight-vector adjustments | 409 adjustments | disks=5 | Two Kinds of Training Information For Evaluation Function LearningSource quoteL272: 409 trials |
| 1991 | I1 (integrated TD/SP) proposed | training trials | 1 trials | disks=3 | Two Kinds of Training Information For Evaluation Function LearningSource quoteL273: 1 |
| 1991 | I1 (integrated TD/SP) proposed | training trials | 1 trials | disks=4 | Two Kinds of Training Information For Evaluation Function LearningSource quoteL274: 1 |
| 1991 | I1 (integrated TD/SP) proposed | training trials | 1 trials | disks=5 | Two Kinds of Training Information For Evaluation Function LearningSource quoteL275: 1 queries |