Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
10 lines
509 B
Plaintext
10 lines
509 B
Plaintext
Cross-checks against Arrays.sort and the O(n^2) inversion definition
|
|
====================================================================
|
|
|
|
every array of length 0..8 over 5 values: 488,281 arrays
|
|
random arrays, length 0..199 (seed 2026): 20,000 arrays
|
|
each checked: top-down, bottom-up, skip-sorted, linked list (top-down), linked list (bottom-up), inversion count
|
|
disagreements: 0
|
|
|
|
stability, records with 5 distinct keys: 5,000 arrays, same object order as Arrays.sort(T[], Comparator): 0 disagreements
|