AlgorithmsTopic Summary

Knowledge Organiser: Linear Search and Binary Search

Part of Linear Search · GCSE GCSE Computer Science revision

This topic summary covers Knowledge Organiser: Linear Search and Binary Search within Linear Search for GCSE Computer Science. Revise Linear Search in Algorithms for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic appears less often, but it can still be a useful differentiator on mixed-topic papers. It is section 8 of 8 in this topic. Use this topic summary to connect the idea to the wider topic before moving on to questions and flashcards.

Topic position

Section 8 of 8

Practice

15 questions

Recall

8 flashcards

Knowledge Organiser: Linear Search and Binary Search

Key Terms
  • Linear search: Checks each item in a list from the start until the target is found or the list ends
  • Binary search: Repeatedly halves a sorted list to locate the target item
  • Midpoint: The middle element of the current search range in binary search
  • Sorted data: Data arranged in ascending or descending order — required for binary search
Must-Know Facts
  • Linear search: works on unsorted data; checks every element in the worst case
  • Binary search: data MUST be sorted first; much faster for large lists
  • Linear search worst case: n comparisons (checks every item)
  • Binary search worst case: log₂(n) + 1 comparisons
  • Linear search is simpler to implement; binary search is more efficient at scale
  • Binary search steps: find midpoint → compare → discard half → repeat
Key Concepts
  • Linear: start at index 0, check each item, stop if found or list exhausted
  • Binary: find midpoint → if target < mid, search left half; if target > mid, search right half
  • Use linear when: data is unsorted, or list is very small
  • Use binary when: data is already sorted and the list is large
  • Binary is NOT always better — sorting takes time, so for a single search on unsorted data, linear may be faster overall
Common Mistakes
  • Using binary search on unsorted data: Binary search only works on sorted lists — applying it to unsorted data will give incorrect results
  • Saying binary search is always faster: For very small lists or unsorted data, linear search is simpler and may be faster overall (sorting first takes extra time)
  • Getting the midpoint calculation wrong: The midpoint is calculated as the middle of the current search range, not the whole list — it changes each time a half is discarded
  • Saying linear search is "inefficient" without context: Linear search is perfectly efficient for small or unsorted lists — efficiency depends on the context, not just the algorithm name
  • Forgetting to show discarded halves in binary search traces: Exam answers must show which half is discarded each step — just stating "found" or "not found" loses method marks

Revise this topic interactively on PrepWise — self-test mode, tap-to-reveal definitions, and Common Mistakes from examiners.

Try the interactive Knowledge Organiser — free →

Keep building this topic

Read this section alongside the surrounding pages in Linear Search. That gives you the full topic sequence instead of a single isolated revision point.

Practice Questions for Linear Search

How does a linear search work?

  • A. It divides the list in half repeatedly until the item is found
  • B. It checks each element in the list one at a time, from start to end
  • C. It sorts the list first, then jumps directly to the target item
  • D. It starts from the middle of the list and works outwards
1 markfoundation

Describe how a linear search works on a list of n items. [3 marks]

3 marksstandard

Quick Recall Flashcards

What does binary search require?
Data must be sorted
What does linear search do?
Checks each item from start to end until found

15 questions on Linear Search — practise free

Instant marking, adaptive difficulty, and 8 spaced repetition flashcards. Free until your GCSEs.

Try PrepWise Free