2015-02-20 09:02:09 -05:00
|
|
|
Use the [[wp:Quickselect|quickselect algorithm]] on the vector
|
|
|
|
|
: [9, 8, 7, 6, 5, 0, 1, 2, 3, 4]
|
|
|
|
|
To show the first, second, third, ... up to the tenth largest member of the vector, in order, here on this page.
|
|
|
|
|
|
2016-12-05 22:15:40 +01:00
|
|
|
* Note: Quick''sort'' has a separate [[Sorting algorithms/Quicksort|task]]. <br><br>
|