At: hanoi sol2 ala general
By: |
|
1 |
2. q : Peg 3. p q 4. a : z:{a...}, s:({a...z}{1...0}Peg). s is a Hanoi(0 disk) seq on a..z & s(a) = (i.p) & s(z) = (i.q) | 4 steps |
2 |
2. 0<n 3. p,q:Peg. 3. p q 3. 3. (a:. 3. (z:{a...}, s:({a...z}{1...n-1}Peg). 3. (s is a Hanoi(n-1 disk) seq on a..z & s(a) = (i.p) & s(z) = (i.q)) 4. p : Peg 5. q : Peg 6. p q 7. a : z:{a...}, s:({a...z}{1...n}Peg). s is a Hanoi(n disk) seq on a..z & s(a) = (i.p) & s(z) = (i.q) | 14 steps |
About: