Selection algorithm: Difference between revisions

Content deleted Content added
No edit summary
Line 35:
swap list[i] and list[minIndex]
'''return''' list[k]
 
[https://en.wikipedia.org/wiki/Selection_sort c program of selection sort] is derived by selection sort algorithm.
 
== Partition-based selection ==