arXiv · cs/0312054
Partitioning schemes for quicksort and quickselect
Abstract
We introduce several modifications of the partitioning schemes used in Hoare's quicksort and quickselect algorithms, including ternary schemes which identify keys less or greater than the pivot. We give estimates for the numbers of swaps made by each scheme. Our computational experiments indicate that ternary schemes allow quickselect to identify all keys equal to the selected key at little additional cost.
Explore related subjects
Keep this discovery
Krzysztof C. Kiwiel. 2003-12-23. Partitioning schemes for quicksort and quickselect. https://arxiv.org/abs/cs/0312054
Cite the original work for its findings. Save a collection to share your selection of sources.