Unit 5 · Data and algorithms

Search

See itExplore the model1 / 5

Race the searches

Linear search checks every card in turn. You play binary search: always pick the middle card, then throw away the half that cannot hold the target. Watch out for a shuffled round.

Next unlocks when this is right.