5
2
1
mrimrtmcd
4
M
R
I
M
R
T
M
C
D
M
R
I
M
R
T
M
C
D
M
R
I
M
R
T
M
C
D
M
R
I
M
R
T
M
C
D
M
R
I
M
R
Initial constructed list
Move forward f=2 nodes
Remove node 2
Increment node 1 to 2
Move forward f=2 nodes
Remove node 4
Toggle direction to backward
Move backward b=1 node
Copy node 2
Decrement node 2 to 1
Move backward b=1 node
Remove node 0
Increment node 1 to 2
Move backward b=1 node
Remove node 5
Toggle direction to forward
Move forward f=2 nodes
Copy node 3
Decrement node 3 to 2
Move forward f=2 nodes
Remove node 2
Increment node 2 to 3
Move forward f=2 nodes
Remove node 2
Toggle direction to backward
Move backward b=1 node
Copy node 3
Decrement node 3 to 2
Move backward b=1 node
Remove node 3
Increment node 2 to 3
Move backward b=1 node
Remove node 3
Toggle direction to forward
Move forward f=2 nodes Copy node 3
Decrement node 3 to 2
Move forward f=2 nodes
Remove node 2
Increment node 3 to 4
Move forward f=2 nodes
Remove node 4
-> 0 <-> 1 <-> 2 <-> 3 <-> 4 <-> 5 <->
-> 2 <-> 3 <-> 4 <-> 5 <-> 0 <-> 1 <->
-> 1 <-> 3 <-> 4 <-> 5 <-> 0 <->
-> 2 <-> 3 <-> 4 <-> 5 <-> 0 <->
-> 4 <-> 5 <-> 0 <-> 2 <-> 3 <->
-> 3 <-> 5 <-> 0 <-> 2 <->
-> 3 <-> 5 <-> 0 <-> 2 <->
-> 2 <-> 3 <-> 5 <-> 0 <->
-> 2 <-> 2 <-> 3 <-> 5 <-> 0 <->
-> 1 <-> 2 <-> 3 <-> 5 <-> 0 <->
-> 0 <-> 1 <-> 2 <-> 3 <-> 5 <->
-> 1 <-> 2 <-> 3 <-> 5 <->
-> 2 <-> 2 <-> 3 <-> 5 <->
-> 5 <-> 2 <-> 2 <-> 3 <->
-> 2 <-> 2 <-> 3 <->
-> 2 <-> 2 <-> 3 <->
-> 3 <-> 2 <-> 2 <->
-> 3 <-> 2 <-> 2 <-> 3 <->
-> 2 <-> 2 <-> 2 <-> 3 <->
-> 2 <-> 3 <-> 2 <-> 2 <->
-> 2 <-> 3 <-> 2 <->
-> 3 <-> 3 <-> 2 <->
-> 2 <-> 3 <-> 3 <->
-> 3 <-> 3 <->
-> 3 <-> 3 <->
-> 3 <-> 3 <->
-> 3 <-> 3 <-> 3 <->
-> 2 <-> 3 <-> 3 <->
-> 3 <-> 2 <-> 3 <->
-> 2 <-> 3 <->
-> 3 <-> 3 <->
-> 3 <-> 3 <->
-> 3 <->
-> 3 <->
-> 3 <->
-> 3 <-> 3 <->
-> 2 <-> 3 <->
-> 2 <-> 3 <->
-> 3 <->
-> 4 <->
-> 4 <-> 4