Skip to content

Searching: linear and binary

Handout

Two ways to search

  • Searching means finding where a value is in an array (or saying it is not there).
  • Linear search checks every item one by one. It works on any array.
  • Binary search is much faster but needs the array to be sorted first.

Handout

Log in or create account

IGCSE & A-Level