Engineering a sort function
Jon Louis Bentley, M. D. McIlroy · Software Practice and Experience · 1993
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.
Cited by 184 works. doi:10.1002/spe.4380231105
Authors
References
- The Art of Computer Programming
- The Art of Computer Programming: Volume 3: Sorting and Searching
- A Discipline of Programming
- Algorithms+Data Structures = Programs
- Structured Programming with go to Statements
- UNIX programmer's manual
- The Art of Computer Programming, Volume 3, Sorting and Searching
- Quicksort
- Algorithms in C
- Programming pearls