By: |
|
1 |
8. m : {1...z-1} 9. s1 : {1...m}{1...n}Peg 10. s2 : {m+1...z}{1...n}Peg 11. (s1 @(m) s2) is a Hanoi(n disk) seq on 1..z 12. s1(1) = (i.p) 13. s2(z) = (i.q) z:{1...}, s:({1...z}{1...n}Peg). s is a Hanoi(n disk) seq on 1..z & s(1) = (i.p) & s(z) = (i.q) | 3 steps |
About: