Add merge-sort module: top-down and bottom-up merge sort, dry runs, stability, comparison counts against the exact worst case, linked lists, counting inversions, quick sort and TimSort comparisons, and the 2015 program re-run (unstable on ties, quadratic allocation) (17 tests, 15 transcripts)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
Comparisons: top-down merge sort vs randomized Lomuto quick sort (pivot seed 1)
|
||||
===============================================================================
|
||||
|
||||
n input merge sort quick sort
|
||||
1,000 random 8,742 10,900
|
||||
10,000 random 120,548 156,821
|
||||
100,000 random 1,536,818 2,046,983
|
||||
20,000 10 distinct keys 253,189 20,103,072
|
||||
Reference in New Issue
Block a user