Dataset Viewer
Auto-converted to Parquet Duplicate
prompt
stringclasses
72 values
n_disks
int64
3
5
source
stringclasses
3 values
auxiliary
stringclasses
2 values
target
stringclasses
3 values
target_response
stringlengths
29
159
optimal_response
stringclasses
12 values
corrupted
bool
2 classes
corruption
stringclasses
4 values
Solve Tower of Hanoi with 3 disks: move the stack from peg B to peg A, using peg C to help.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
Move the 3-disk stack currently on peg A over to peg B. You may use peg C as a temporary spot.
3
A
C
B
A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
false
null
3-disk Tower of Hanoi: start on peg B, finish on peg C, auxiliary peg A.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
Solve Tower of Hanoi with 3 disks: move the stack from peg C to peg B, using peg A to help.
3
C
A
B
A->C C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
true
insert
4-disk Tower of Hanoi: start on peg B, finish on peg A, auxiliary peg C.
4
B
C
A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
false
null
Move the 4-disk stack currently on peg A over to peg B. You may use peg C as a temporary spot.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A A->C C->B A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
true
swap
You have 4 disks on peg B. Move them one at a time to peg C. Peg A is the spare peg.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
4-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
There are 5 disks stacked on peg B, largest at the bottom. Move all 5 disks to peg A. Peg C is available as an auxiliary peg.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg A to peg B, using peg C to help.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
A tower of 5 disks sits on peg B. Relocate the entire tower to peg C, with peg A free to use along the way.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg C to peg B, using peg A to help.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
A tower of 3 disks sits on peg B. Relocate the entire tower to peg A, with peg C free to use along the way.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
3-disk Tower of Hanoi: start on peg A, finish on peg B, auxiliary peg C.
3
A
C
B
A->B B->C A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
true
insert
There are 3 disks stacked on peg B, largest at the bottom. Move all 3 disks to peg C. Peg A is available as an auxiliary peg.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
3-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
3
C
A
B
C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
false
null
Move the 4-disk stack currently on peg B over to peg A. You may use peg C as a temporary spot.
4
B
C
A
B->C B->A C->B C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
true
insert
A tower of 4 disks sits on peg A. Relocate the entire tower to peg B, with peg C free to use along the way.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
Move the 4-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
A tower of 4 disks sits on peg C. Relocate the entire tower to peg B, with peg A free to use along the way.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->B C->A A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
true
swap
Solve Tower of Hanoi with 5 disks: move the stack from peg B to peg A, using peg C to help.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
You have 5 disks on peg A. Move them one at a time to peg B. Peg C is the spare peg.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
Move the 5-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg C to peg B, using peg A to help.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
Solve Tower of Hanoi with 3 disks: move the stack from peg B to peg A, using peg C to help.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
Move the 3-disk stack currently on peg A over to peg B. You may use peg C as a temporary spot.
3
A
C
B
A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
false
null
Move the 3-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
Move the 3-disk stack currently on peg C over to peg B. You may use peg A as a temporary spot.
3
C
A
B
C->B C->A B->A C->B A->B A->C C->B
C->B C->A B->A C->B A->C A->B C->B
true
swap
You have 4 disks on peg B. Move them one at a time to peg A. Peg C is the spare peg.
4
B
C
A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
false
null
Move the 4-disk stack currently on peg A over to peg B. You may use peg C as a temporary spot.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
Solve Tower of Hanoi with 4 disks: move the stack from peg B to peg C, using peg A to help.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
There are 4 disks stacked on peg C, largest at the bottom. Move all 4 disks to peg B. Peg A is available as an auxiliary peg.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
There are 5 disks stacked on peg B, largest at the bottom. Move all 5 disks to peg A. Peg C is available as an auxiliary peg.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
You have 5 disks on peg A. Move them one at a time to peg B. Peg C is the spare peg.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg B to peg C, using peg A to help.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
5-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
A tower of 3 disks sits on peg B. Relocate the entire tower to peg A, with peg C free to use along the way.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
You have 3 disks on peg A. Move them one at a time to peg B. Peg C is the spare peg.
3
A
C
B
A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
false
null
Move the 3-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
A tower of 3 disks sits on peg C. Relocate the entire tower to peg B, with peg A free to use along the way.
3
C
A
B
C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
false
null
4-disk Tower of Hanoi: start on peg B, finish on peg A, auxiliary peg C.
4
B
C
A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
true
delete
4-disk Tower of Hanoi: start on peg A, finish on peg B, auxiliary peg C.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
Solve Tower of Hanoi with 4 disks: move the stack from peg B to peg C, using peg A to help.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
Solve Tower of Hanoi with 4 disks: move the stack from peg C to peg B, using peg A to help.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
There are 5 disks stacked on peg B, largest at the bottom. Move all 5 disks to peg A. Peg C is available as an auxiliary peg.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
There are 5 disks stacked on peg A, largest at the bottom. Move all 5 disks to peg B. Peg C is available as an auxiliary peg.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
Move the 5-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C C->A B->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
true
swap
There are 5 disks stacked on peg C, largest at the bottom. Move all 5 disks to peg B. Peg A is available as an auxiliary peg.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
3-disk Tower of Hanoi: start on peg B, finish on peg A, auxiliary peg C.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
3-disk Tower of Hanoi: start on peg A, finish on peg B, auxiliary peg C.
3
A
C
B
A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
false
null
3-disk Tower of Hanoi: start on peg B, finish on peg C, auxiliary peg A.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
There are 3 disks stacked on peg C, largest at the bottom. Move all 3 disks to peg B. Peg A is available as an auxiliary peg.
3
C
A
B
C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
false
null
There are 4 disks stacked on peg B, largest at the bottom. Move all 4 disks to peg A. Peg C is available as an auxiliary peg.
4
B
C
A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
false
null
4-disk Tower of Hanoi: start on peg A, finish on peg B, auxiliary peg C.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
Move the 4-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
A tower of 4 disks sits on peg C. Relocate the entire tower to peg B, with peg A free to use along the way.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
You have 5 disks on peg B. Move them one at a time to peg A. Peg C is the spare peg.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg A to peg B, using peg C to help.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
true
delete
There are 5 disks stacked on peg B, largest at the bottom. Move all 5 disks to peg C. Peg A is available as an auxiliary peg.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
A tower of 5 disks sits on peg C. Relocate the entire tower to peg B, with peg A free to use along the way.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
3-disk Tower of Hanoi: start on peg B, finish on peg A, auxiliary peg C.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
Solve Tower of Hanoi with 3 disks: move the stack from peg A to peg B, using peg C to help.
3
A
C
B
A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
false
null
Solve Tower of Hanoi with 3 disks: move the stack from peg B to peg C, using peg A to help.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
3-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
3
C
A
B
C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
false
null
4-disk Tower of Hanoi: start on peg B, finish on peg A, auxiliary peg C.
4
B
C
A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
false
null
There are 4 disks stacked on peg A, largest at the bottom. Move all 4 disks to peg B. Peg C is available as an auxiliary peg.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
A tower of 4 disks sits on peg B. Relocate the entire tower to peg C, with peg A free to use along the way.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
true
delete
Solve Tower of Hanoi with 4 disks: move the stack from peg C to peg B, using peg A to help.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
There are 5 disks stacked on peg B, largest at the bottom. Move all 5 disks to peg A. Peg C is available as an auxiliary peg.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg A to peg B, using peg C to help.
5
A
C
B
A->B A->C B->C A->B C->A C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
true
insert
5-disk Tower of Hanoi: start on peg B, finish on peg C, auxiliary peg A.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
Move the 5-disk stack currently on peg C over to peg B. You may use peg A as a temporary spot.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
true
insert
Move the 3-disk stack currently on peg B over to peg A. You may use peg C as a temporary spot.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
You have 3 disks on peg A. Move them one at a time to peg B. Peg C is the spare peg.
3
A
C
B
A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
false
null
You have 3 disks on peg B. Move them one at a time to peg C. Peg A is the spare peg.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
A tower of 3 disks sits on peg C. Relocate the entire tower to peg B, with peg A free to use along the way.
3
C
A
B
C->A C->B B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
true
swap
Solve Tower of Hanoi with 4 disks: move the stack from peg B to peg A, using peg C to help.
4
B
C
A
B->C B->A C->A B->C A->B A->C B->C B->A C->A A->B C->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
true
swap
4-disk Tower of Hanoi: start on peg A, finish on peg B, auxiliary peg C.
4
A
C
B
A->C C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
true
delete
Move the 4-disk stack currently on peg B over to peg C. You may use peg A as a temporary spot.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
4-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
4
C
A
B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
Solve Tower of Hanoi with 5 disks: move the stack from peg B to peg A, using peg C to help.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
true
insert
You have 5 disks on peg A. Move them one at a time to peg B. Peg C is the spare peg.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A B->C C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
true
insert
There are 5 disks stacked on peg B, largest at the bottom. Move all 5 disks to peg C. Peg A is available as an auxiliary peg.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
Move the 5-disk stack currently on peg C over to peg B. You may use peg A as a temporary spot.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
Solve Tower of Hanoi with 3 disks: move the stack from peg B to peg A, using peg C to help.
3
B
C
A
B->A B->C A->C B->A C->B A->C C->A B->A
B->A B->C A->C B->A C->B C->A B->A
true
insert
A tower of 3 disks sits on peg A. Relocate the entire tower to peg B, with peg C free to use along the way.
3
A
C
B
A->B A->C B->A B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
true
insert
There are 3 disks stacked on peg B, largest at the bottom. Move all 3 disks to peg C. Peg A is available as an auxiliary peg.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
3-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
3
C
A
B
C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
false
null
You have 4 disks on peg B. Move them one at a time to peg A. Peg C is the spare peg.
4
B
C
A
B->C A->C C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A
true
replace
Solve Tower of Hanoi with 4 disks: move the stack from peg A to peg B, using peg C to help.
4
A
C
B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
false
null
There are 4 disks stacked on peg B, largest at the bottom. Move all 4 disks to peg C. Peg A is available as an auxiliary peg.
4
B
A
C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C
false
null
A tower of 4 disks sits on peg C. Relocate the entire tower to peg B, with peg A free to use along the way.
4
C
A
B
C->A C->B A->B C->A B->C B->A B->C C->B A->B A->C B->C A->B C->A C->B A->B
C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
true
replace
Move the 5-disk stack currently on peg B over to peg A. You may use peg C as a temporary spot.
5
B
C
A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A B->C A->C A->B C->B A->C B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A
false
null
5-disk Tower of Hanoi: start on peg A, finish on peg B, auxiliary peg C.
5
A
C
B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B C->A B->C B->A C->A C->B A->B A->C B->C A->B C->A C->B A->B
false
null
You have 5 disks on peg B. Move them one at a time to peg C. Peg A is the spare peg.
5
B
A
C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C B->A C->A C->B A->B C->A B->C B->A C->A B->C A->B A->C B->C A->B C->A C->B A->B A->C B->C B->A C->A B->C A->B A->C B->C
false
null
There are 5 disks stacked on peg C, largest at the bottom. Move all 5 disks to peg B. Peg A is available as an auxiliary peg.
5
C
A
B
C->B C->A B->A C->B A->C A->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B C->A B->A B->C A->C B->A C->B C->A B->A C->B A->C A->B C->B A->C B->A B->C A->C A->B C->B C->A B->A C->B A->C A->B C->B
true
delete
3-disk Tower of Hanoi: start on peg B, finish on peg A, auxiliary peg C.
3
B
C
A
B->A B->C A->C B->A C->B C->A B->A
B->A B->C A->C B->A C->B C->A B->A
false
null
There are 3 disks stacked on peg A, largest at the bottom. Move all 3 disks to peg B. Peg C is available as an auxiliary peg.
3
A
C
B
A->C B->C A->B C->A C->B A->B
A->B A->C B->C A->B C->A C->B A->B
true
delete
3-disk Tower of Hanoi: start on peg B, finish on peg C, auxiliary peg A.
3
B
A
C
B->C B->A C->A B->C A->B A->C B->C
B->C B->A C->A B->C A->B A->C B->C
false
null
3-disk Tower of Hanoi: start on peg C, finish on peg B, auxiliary peg A.
3
C
A
B
C->B C->A B->A C->B A->C A->B C->B
C->B C->A B->A C->B A->C A->B C->B
false
null
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
41