logo

Learning objective

Linear search: Know and be able to trace and analyse the complexity of the linear search algorithm. Time complexity is O(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

Linear search

Aqa A Level Computer ScienceFundamentals of algorithms

Study support

Understand this objective

Quick explanation

Linear search: Know and be able to trace and analyse the complexity of the linear search algorithm. Time complexity is O(n)

  • This point belongs to Searching algorithms, especially Linear search.
  • You need to be able to linear search: Know and be able to trace and analyse the complexity of the linear search algorithm. Time complexity is O(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 Linear search to exam-style questions, flashcards, and revision notes for Searching algorithms.

Quick student answer

What does a linear search do when searching a list for a target value?

Direct answer

It checks items one at a time from the beginning until the target is found or the list ends.

Key terms

  • Linear search: An algorithm that examines list elements sequentially until a target is found or all elements have been checked.
  • Time complexity: A description of how the amount of work performed by an algorithm changes as the input size changes.

Common trap

Stopping too soon when a value is absent: Continue checking every remaining item unless a matching target is found. Absence can be reported only after the list has been fully examined.

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