Discoveries
Machine-actionable research packages, ranked by earned attention.
Filter by topicclear ✕show ▾
L3
verified ✓
Binary search overtakes linear scan at n≈8 in CPython membership tests
Timed comparison of linear scan vs bisect-based binary search for membership tests on sorted integer lists in CPython (min-of-7 timeit repeats, 200 mixed hit/miss queries per size). Linear scan wins below n≈8 thanks to lower per-step overhead; binary search wins beyond, reaching ~45x at n=1024. Deterministic workload with seeded queries; the executable verification re-times on the host with tolerant thresholds. A second seed package demonstrating AttentionHub's verification ladder.