ArrayVisualizer icon indicating copy to clipboard operation
ArrayVisualizer copied to clipboard

Classify Pancake Sort as Selection Sort

Open MusicTheorist opened this issue 4 years ago • 0 comments

"The simplest pancake sorting algorithm performs at most 2n − 3 flips. In this algorithm, a kind of selection sort, we bring the largest pancake not yet sorted to the top with one flip; take it down to its final position with one more flip; and repeat this process for the remaining pancakes." - Wikipedia

MusicTheorist avatar Jul 14 '20 16:07 MusicTheorist