References: Sorting
Books, articles and resources to go deeper into the lessons of this chapter. The textbooks are listed in order of relevance to the course.
Textbooks
- R. Sedgewick and K. Wayne. Algorithms, 4th ed. Addison-Wesley, 2011. Its chapter on sorting, with Java implementations, is one of the best introductions to the subject.
- T. H. Cormen, C. E. Leiserson, R. L. Rivest and C. Stein. Introduction to Algorithms, 4th ed. MIT Press, 2022. Insertion sort, Mergesort, Quicksort (with the analysis of its average case) and the lower bound for comparison sorting.
- D. E. Knuth. The Art of Computer Programming, Volume 3: Sorting and Searching, 2nd ed. Addison-Wesley, 1998. The encyclopedic reference on sorting, including the minimum number of comparisons needed to sort small arrays.
- A. Levitin. Introduction to the Design and Analysis of Algorithms, 3rd ed. Pearson, 2012. Selection and bubble sort as brute force, insertion sort as decrease-and-conquer, and Mergesort and Quicksort as divide and conquer.
Original sources
- C. A. R. Hoare. "Quicksort". The Computer Journal, 5(1):10–16, 1962.
- J. L. Bentley and M. D. McIlroy. "Engineering a sort function". Software: Practice and Experience, 23(11):1249–1265, 1993. The design of a practical Quicksort (median of three, three-way partitioning), which influenced the sorting methods of most standard libraries.
Online resources
- Sorting algorithms visualized (VisuAlgo): step-by-step animations of every algorithm in the chapter.
- Comparison sorting algorithms (David Galles): interactive animations.
Saved only in your browser
Questions, or something wrong?
Errors, suggestions and public questions open a form on GitHub, visible to everyone.