Content deleted Content added
removed repetitions of "following it" and "preceding it" |
|||
Line 62:
'''return''' storeIndex
In quicksort, we recursively sort both branches, leading to best-case [[Big-O notation|Ω]](''n'' log ''n'') time. However, when doing selection, we already know which partition our desired element lies in, since the pivot is in its final sorted position, with all those preceding it in sorted order
'''function''' select(a, k, left, right)
|