logo

Learning objective

Binary search: Know and be able to trace and analyse the time complexity of the binary search algorithm. Time complexity is O(log n).

Read the explanation, check the common trap, then practise with flashcards and questions.

At a glance

0

Flashcards

0

Questions

Topic

Searching algorithms

Subtopic

Binary search

Aqa A Level Computer ScienceFundamentals of algorithms

Study support

Understand this objective

Quick explanation

Binary search: Know and be able to trace and analyse the time complexity of the binary search algorithm. Time complexity is O(log n)

  • This point belongs to Searching algorithms, especially Binary search.
  • You need to be able to binary search: Know and be able to trace and analyse the time complexity of the binary search algorithm. Time complexity is O(log n).
  • Use the linked flashcards and practice questions to check recall, then practise applying the idea in an exam-style answer.

Why it matters

This objective helps connect Binary search to exam-style questions, flashcards, and revision notes for Searching algorithms.

Quick student answer

A binary search is performed on the sorted list [3, 7, 11, 15, 19, 23, 27] to find 23. Using the middle item of the current search range, which items are checked?

Direct answer

15, then 23

Key terms

  • Binary search: A search algorithm that repeatedly checks the middle of an ordered range and discards the half that cannot contain the target.
  • Time complexity: A description of how the number of operations performed by an algorithm changes as the input size increases.

Common trap

Using binary search on unordered data: Ensure the data is ordered first, because binary search relies on the order to decide which half to discard.

Related questions

Try this as a practice card

4 linked

Question 1 of 4

Choose an answer, get feedback, then move sideways through the set.

0 of 4 attempted

Flashcard prompts

Flip through the key recall cards

4 cards

Flashcard 1 of 4

Press Space to flip, arrows to move

Revision tools

Choose how to practise

Back to topic hub
Flashcards0 linked cards
No objective-specific flashcards are cached for this page. Use the topic hub to revise the surrounding flashcards without triggering a frozen-subject DB fallback.Open topic hub
Practice Questions0 linked questions
No objective-specific practice questions are cached for this page. Use the topic question bank to practise nearby curriculum questions without weakening the egress guard.Open topic questions

Related learning objectives