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:
@@ -0,0 +1,7 @@
|
||||
20,000 keys drawn from only 10 distinct values
|
||||
==============================================
|
||||
|
||||
scheme comparisons swaps depth
|
||||
LOMUTO_LAST 20,089,334 26,134 2,082
|
||||
HOARE_MIDDLE 338,316 121,964 23
|
||||
THREE_WAY 102,334 44,128 6
|
||||
Reference in New Issue
Block a user