Bit-width allocation
At nine layers, dynamic programming matches exhaustive loss in 0.0714 ms against 3.6329 ms
Find a route across a real road network, detect near-duplicate documents, or compact sorted runs in an LSM tree. Open an example to see how the modules fit together, what the baseline does, and how to rerun the comparison.
At nine layers, dynamic programming matches exhaustive loss in 0.0714 ms against 3.6329 ms
Lazy greedy needs 576 gain evaluations against full-scan greedy's 22,500 at budget 75 on low-overlap (0.267 ms against 4.274 ms)
Packing three search hits into 21 words: new-query-terms-first keeps the setup rule and the version caveat in 19 words, where rank-and-truncate drops the caveat
On a 384-result pool, greedy determinant selection covers 8.00 topics at size 8, against 1.00 for top-quality selection
A backward worklist saves 510 of 768 block evaluations on a 256-block control-flow graph
On the skewed trace at fanout 4, size-tiered writes 1.81× input bytes and searches 2.70 runs per point lookup; full-level writes 2.24× and searches 1.97
MST walk at n = 442: the three graph layouts land within 5% (0.697–0.723 ms); Held-Karp solves burma14 in 2.61 ms
Classic contraction on a 75-vertex graph: indexed layout 0.0251 ms against 0.0393 ms for object
At 100,000 vertices, Kruskal over indexed takes 31.31 ms against 46.58 ms for object; Prim with k=4 takes 106.11 ms against 116.08 ms for binary
On a pinned 400-document corpus, 16 bands of 4 score 77 of 79,800 possible pairs and recover all 62 pairs above 0.6
On SIFT10K, HNSW at width 32 reaches 99.4% held-out recall@10 at 0.21 ms p95, against 1.5 ms for exhaustive search
With 100 ranges, summaries approve 16 of 32 replays and cost a mean 43,200 bytes, against 80,000 to fetch both count arrays
On a 7,510-arrival trace the bounded table keeps 64 clients in at most 170 KB; the hand-written Map counter keeps 4,146 in 684 KB
Scoring 65,539 two-bit weights took 64.7 µs directly from packed bytes and 162.6 µs with per-call expansion
inline-singleton clusters in 300.1 ms and retains 5,367,998 bytes per index; map-of-sets takes 322.5 ms and retains 26,328,798
On the New York network, dijkstra from one source takes 79.0 ms on compressed-sparse-row against 27.1 ms hand-written (2.7–3.3× on search rows)
Random input at width 128: sorting each window takes 147.19 ms, a sorted array 4.04 ms, an indexed skip list 9.48 ms
Increasing input at width 128: the array deque takes about 0.48 ms against 8.36 ms for rescanning; on random input rescanning is faster
39.1% paired-latency reduction on one NVIDIA A10 for a 260K-parameter toy target and a zero-cost n-gram draft; Qwen 0.5B/1.5B was 37.4% slower
Bounded complete runs: sim-grid-B-010 in 2.784 ms and sim-grid-B-050 in 6.947 ms; policy rows are too noisy to rank
16 shortest ladders take 0.79 ms on compressed-sparse-row against 14.12 ms on the implicit graph; packed postings retain 96.8% less memory
No example matches. Find a module by task instead.
git clone https://github.com/jkomyno/knotkit.git && cd knotkitbun installbun run demo:problem:near-duplicate-detectionResults come from one machine. Expect different absolute numbers on yours.