How many pages prove the answer?
Paste two ranked lists to find every minimal page budget that guarantees the same ordered top k as a full reciprocal-rank fusion. Your inputs and results stay in this tab.
Full-scan answer
Minimal sufficient budgets
A budget is minimal when reading one fewer page from either source would remove the guarantee. Every larger budget in both coordinates is also sufficient.
| A pages | B pages | Total |
|---|
Inspect a prefix
Compare any pair of read depths. A source can signal exhaustion on its final page.
What makes a budget sufficient?
Ranks start at one. An ID gains 1/(60 + rank) in each source that contains it. Scores use exact integer arithmetic, with equal weights and ascending Unicode code-point order for ties.
Before exhaustion, any nonempty string absent from that source’s prefix could appear next, even one absent from both input lists. Its largest remaining contribution is 1/(61 + depth). A prefix certifies the answer when every leader outranks every eligible challenger under these bounds, including the earliest unseen ID. An empty list costs one final page to confirm. Both complete lists can return fewer than k IDs.
The calculation replays complete rankings in hindsight. It prices pages equally and assumes stable, duplicate-free source lists with an explicit end marker. The minimum is a lower bound for online scheduling.