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,9 @@
|
||||
Comparisons for n = 100,000: our merge sort vs Arrays.sort(Integer[], countingComparator)
|
||||
=========================================================================================
|
||||
|
||||
input top-down skip-sorted Arrays.sort
|
||||
random 1,536,818 1,596,193 1,534,762
|
||||
sorted 853,904 99,999 99,999
|
||||
reversed 815,024 915,023 99,999
|
||||
4 sorted runs 953,895 299,990 299,994
|
||||
sorted, 10 swaps 1,017,088 487,083 101,078
|
||||
Reference in New Issue
Block a user