By: |
CoHanoiHelper(n; s1; f; s2; g)/r1,r2. Co(r1 @(m) r2) is a Hanoi(n disk) seq on a..z Co& r1(a) = f {1...n}Peg Co& r2(z) = g {1...n}Peg Co* Co((s1(?) {to n-1} f {to n}) @(m) (s2(?) {to n-1} g {to n})) Cois a Hanoi(n disk) seq on a..z Co& (s1(?) {to n-1} f {to n})(a) = f {1...n}Peg Co& (s2(?) {to n-1} g {to n})(z) = g {1...n}Peg |
1 |
is a Hanoi(n disk) seq on a..z | 16 steps |
2 |
| 4 steps |
3 |
| 4 steps |
About: