Sorting Algorithms/Circle Sort: Difference between revisions

Content deleted Content added
Peak (talk | contribs)
Fix statement of the algorithm, which otherwise would fail to sort [0,1,2,0]
Line 5: Line 5:
After:
After:
'''1''' ''4'' 3 5 2 9 8 ''7'' '''6'''
'''1''' ''4'' 3 5 2 9 8 ''7'' '''6'''

Repeat this procedure until quiescence (i.e. until there are no swaps).


Show both the initial, unsorted list and the final sorted list. (Intermediate steps during sorting are optional.)
Show both the initial, unsorted list and the final sorted list. (Intermediate steps during sorting are optional.)