A linear space algorithm for solving the Towers of Hanoi problem by using a virtual disc (Q1116691)
From MaRDI portal
| This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use this page instead for the normal view: A linear space algorithm for solving the Towers of Hanoi problem by using a virtual disc |
scientific article; zbMATH DE number 4090788
| Language | Label | Description | Also known as |
|---|---|---|---|
| English | A linear space algorithm for solving the Towers of Hanoi problem by using a virtual disc |
scientific article; zbMATH DE number 4090788 |
Statements
A linear space algorithm for solving the Towers of Hanoi problem by using a virtual disc (English)
0 references
1989
0 references
A space efficient algorithm for solving the Towers of Hanoi problem is presented in this paper. The algorithm utilizes the concept of virtual disc, which is an artificial disc smaller than the smallest real disc. The purpose of introduing such a virtual disc is to enforce a unique disc move at each step. As peg information is not represented, the space complexity of the algorithm is reduced to \(\sim n\) bits, where n is the number of discs in the tower.
0 references
iterative algorithm
0 references
Towers of Hanoi
0 references
space complexity
0 references
0 references
0 references
0.89757967
0 references
0.8604119
0 references
0.85920393
0 references
0.8559544
0 references
0.85324186
0 references
0.85071236
0 references
0.84828347
0 references
0 references
0.8419037
0 references