|
ADS
Algorithms and Data Structures
|
The adversary of McIlroy against quicksort, beyond the book. More...
Files | |
| file | ADS/sort/QuicksortAdversary.h |
| The adversary of McIlroy against quicksort, beyond the book: a comparator of the items \( 0 , \ldots , n - 1 \) that does not look at their values, since they have none when the sort starts, and gives them their values while the sort runs, so that the quicksort that it is passed to makes \( \Theta( n^2 ) \) comparisons (exercise 11.6 of Morin's book). | |
Classes | |
| class | ADS::QuicksortAdversary |
| the adversary of McIlroy: a comparator of \( n \) items that gives them their values while a quicksort runs More... | |
The adversary of McIlroy against quicksort, beyond the book.
The definitions, the invariants and the costs of the area are in Theory of sorting.