Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Keep the Useful Candidates Without Losing Their IDs

Keeping the Current Best Candidate Close

BOTIE

Selecting the next best item was an algorithm problem long before a retrieval system had thousands of passages to rank. J. W. J. Williams’ 1964 Heapsort algorithm described a heap: an array organised so an extreme item stays at its root. In his formulation the least item is immediately available, and insertion or extraction repairs the ordering without sorting the entire collection again.

That idea also helps a bounded shortlist. Keep only the best k candidates, with the weakest retained candidate easiest to inspect. A better arrival can replace it. Our workshop uses sorting to show which positions win; the Python challenge builds the bounded heap. Both must preserve passage IDs and the declared tie rule. Efficient selection does not decide whether the retrieval scores identify useful evidence.

Sources for this history