ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
Sorting

The sorts. More...

Topics

 Theory of sorting
 CountingSort.h
 Counting Sort (section 2.7.5) of integers in \( [ 0 , k ) \).
 EngineeredQuickSorts.h
 The quicksorts beyond the quicksort of Montresor's book.
 ExchangeSorts.h
 The sorts by exchanges of items, beyond the book, all in place.
 ExternalSort.h
 The sort of a file larger than the memory, beyond the book, as Knuth describes it for tapes, here on sequences in memory that play the files.
 Heapsort.h
 The max-heap on a vector and heapsort (section 10.1.4).
 InsertionSort.h
 Insertion Sort (section 2.7.2), as one sorts a hand of cards.
 KnuthSorts.h
 The internal sorts of Knuth that the book leaves out, beyond the book.
 LearnedSort.h
 The learned sort, beyond the book.
 MergeSort.h
 Merge Sort (section 2.7.3).
 MultikeyQuickSort.h
 The multikey quicksort of Bentley and Sedgewick, as chapter 7, Sorting Strings, of Ferragina's book presents it.
 PdqSort.h
 The pattern-defeating quicksort, beyond the book and beyond the quicksorts of Ferragina's book, which are in EngineeredQuickSorts.h.
 PigeonholeSort.h
 Pigeonhole Sort (exercise 4.11) of the pairs \( ( \mathit{key} , \mathit{value} ) \) with keys in \( [ 0 , k ) \).
 QuickSort.h
 Quicksort (section 12.2).
 QuicksortAdversary.h
 The adversary of McIlroy against quicksort, beyond the book.
 RadixSort.h
 The sorts by the digits of the keys, beyond the book (which has Counting Sort and Pigeonhole Sort, the one-digit cases, in CountingSort.h and PigeonholeSort.h).
 RunSorts.h
 The natural merge sort that adapts to the runs of the input, beyond the book, stable.
 SampleSort.h
 The in-place super scalar samplesort, beyond the book.
 SelectionSort.h
 Selection Sort (section 2.7.1).
 ShellSort.h
 Shell Sort (section 15.1), a local search that lowers the number of inversions.
 Sort.h
 The sort that chooses its algorithm, beyond the book.
 Sorted.h
 The checks of the contracts of the sorts.
 SortingNetworks.h
 Sorting networks, beyond the book.
 StrandSort.h
 The strand sort, beyond the book, on a list with pointers.
 StringSort.h
 The sort of strings by integer keys of their prefixes, beyond the book.
 TreeSort.h
 The tree sort (exercise 6.1 and its solution).
 VectorQuickSort.h
 The quicksort in the lanes of the vector registers, beyond the book.

Detailed description

The sorts.

The definitions, the invariants and the costs of the area are in Theory of sorting.