correctness of BestTwoSum
Let
selection sort.
Comparison: , changes
insertion sort.
Comparison: , changes
merge sort.
- divide-and-conquer
A lower bound for general-purpose sorting
assume we have a list of of distinct values
: All possible lists that are treated the same by A such that
Question
Can we improve mergesort O(N) memory?
quick sort.
Complexity of quicksort
recursion tree: