k·ln(n) vs our modelEach point is one query from acorn_off_all.csv (five corpora; the voyage 5M graph is excluded to
keep the n axis readable), sampled evenly across graph sizes (about 1,200 per cell, equal share per size) so large
graphs aren't swamped by small ones. Points are banded by measured layer-0 degree b and by selectivity; the
surfaces show each formula at the cell's median selectivity and median b (ours is linear in b, so the band IS the
model input). Our model:
max(min(k, n·s), 0.706·ln²n + max(b·ln n, uniq(min(n, b·k/s), 0.289·(k/s)0.721·b·ln n)))
— no M dependence; M acts only through the measured degree. Positive = a full scan is cheaper (true cost >
filtered_docs). Green = correct (TP or TN), red = false positive (scanned when HNSW was cheaper), yellow = false
negative (used HNSW when a scan was cheaper). Axes are linear. Drag to rotate, scroll to zoom.