Thus, this algorithm can sometimes be stopped short. Those familiar with
sorting algorithms might compare this idea to that of a bubble sort and Floyd’s
algorithm to a selection sort (see Sections 3.1 and 9.6 of Discrete Mathematics
and Its Applications).