Question 11
Bob has four tubes, each holding at most two round sweets. The first three are full and the fourth is empty. Colours are blue (X), red (Đ), yellow (V); the source uses letters on grey circles. Bob wants each colour grouped in its own tube.

A move D(i-j) transfers the top sweet of tube i to tube j, which must have space. These two independent examples explain D(1-2) and D(3-4).


Which move sequence sorts the original sweets?

A move D(i-j) transfers the top sweet of tube i to tube j, which must have space. These two independent examples explain D(1-2) and D(3-4).


Which move sequence sorts the original sweets?