Good illustration of the technique, but moves 9 and 10 were unnecessary, and at move 14, the stack is sorted. I guess your algorithm here simply repeats a sequence 2n times (for n pancakes) without checking for completion or redundancy. Tsk tsk!
Yes, you are right. In fact I programmed this with the simplest algorithm I found, as an example of programming with VTK-Python, rather than looking for the better algorithm.
epic background music!! :D
hydroslf 4 months ago
Good illustration of the technique, but moves 9 and 10 were unnecessary, and at move 14, the stack is sorted. I guess your algorithm here simply repeats a sequence 2n times (for n pancakes) without checking for completion or redundancy. Tsk tsk!
yugpud 2 years ago
Yes, you are right. In fact I programmed this with the simplest algorithm I found, as an example of programming with VTK-Python, rather than looking for the better algorithm.
mariostorti 2 years ago