StudyGraph
Networking Explainer

Find anything in 20 guesses

You can find one name among a million in 20 guesses

Lesson notes

Key points

Definitions

O(log n)
Work grows with the number of halvings, not the number of items

Takeaway: Halve the problem each step

Quick check: Binary search needs the list to be…
  1. Sorted
  2. Short
  3. Random

Binary search only works on sorted data.

Binary searchHalvingLog n

Lessons like this, for your syllabus.

Short narrated study videos written for your course, level and exam. Free to start.

Get lessons for your own syllabus