Gray-code based (Tower of Hanoi Tower of Hanoi)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O({2}^n)$

Space Complexity

$O(n)$ bits

(Need to keep track of an n-bit counter for Gray codes)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1940

Reference

NA