Paper record
W2149468555Engineering a sort function
Jon Louis Bentley, M. D. McIlroy
- Year
- 1993
- Venue
- Software Practice and Experience
- References
- 16
- Cited by
- 223
Details and counts from OpenAlex.
Abstract
We recount the history of a new qsortfunction for a C library. Our function is clearer, faster and more robust than existing sorts. It chooses partitioning elements by a new sampling scheme; it partitions by a novel solution to Dijkstra's Dutch National Flag problem; and it swaps efficiently. Its behavior was assessed with timing and debugging testbeds, and with a program to certify performance. The design techniques apply in domains beyond sorting.