Add quick-sort module: Lomuto and Hoare partition dry runs, comparison/swap/depth counts on sorted, reverse and all-equal input, random pivot, three-way partition, recursion into the smaller side, and the three 2015 programs re-run (one corrupts duplicates, one throws) (16 tests, 14 transcripts)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7Rercfj3dzDQowoFA
This commit is contained in:
Claude
2026-11-25 22:58:21 +05:30
parent 515302d5ba
commit 6e5764978f
40 changed files with 1765 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
20,000 seeded random arrays (length 0..40, keys -20..20) per version, compared with Arrays.sort
===============================================================================================
Lomuto 20,000 arrays, 0 disagreements
Hoare 20,000 arrays, 0 disagreements
ThreeWay 20,000 arrays, 0 disagreements
Randomized (seed 1) 20,000 arrays, 0 disagreements
StackSafe 20,000 arrays, 0 disagreements
LomutoQuickSort2015 (post 2531) 20,000 arrays, 0 disagreements
FirstPivot, fixed (post 2530) 20,000 arrays, 0 disagreements