Sorting
From comparison sorts to SIMD-accelerated radix. Performance is measured, not assumed.
This module treats algorithms as executable claims. Every entry below links to runnable code, benchmark evidence, or reproducible experiments in this repository.
From comparison sorts to SIMD-accelerated radix. Performance is measured, not assumed.
Hash functions and hash table layouts that survive cache pressure and concurrent access.
| Algorithm | Time | Space | Cache Friendly | Parallel | Key Trade-off |
|---|---|---|---|---|---|
| Quicksort (introspective) | O(n log n) avg | O(log n) | Partial | Hard | Branch misprediction on pivot |
| Merge sort | O(n log n) | O(n) | Yes | Easy | Extra memory for merging |
| Radix sort (LSD) | O(nk) | O(n + r) | Yes | Moderate | Key width and digit size |
| Robin Hood hashing | O(1) exp | O(n) | Yes | Hard | Robin Hood shift on insert |
| Swiss Tables (F14) | O(1) exp | O(n) | Yes | Hard | SIMD probing, flat layout |
perf stat.