Session XP: 0
Topic 1AComponent 1

Searching & Sorting Algorithms

Linear search, binary search, bubble sort, merge sort. Jun 2024 Q1(f) and Jun 2023 Q4(d) both tested searches. Key: compare their efficiency.

—
Best score
—
Last attempt
Best attempt progress
0
XP earned
Watch first — Craig 'n' Dave
Craig 'n' Dave · Edexcel 1CP2Searching and Sorting Algorithms
Key facts

Searching algorithms — fill in the table

AlgorithmDescription
Linear search
Binary search
Divide and conquer
Exam wording

Sorting algorithms — fill in the table

AlgorithmDescription
Bubble sort
Merge sort
Key exam point

Why binary search is faster

Exam questions — 4 questions · 11 marks · from real 1CP2 past papers
1 markDivide and conquer1CP2 Jun 2024 Q1(f)(i) style

Which search algorithm is a divide and conquer algorithm?

A Linear search
B Binary search
C Bubble sort
D Sequential search
2 marksBinary search steps1CP2 Jun 2023 Q4(d) style

Describe how a binary search finds a target value in a sorted list. (2 marks — linked description)

Hint: Start → find middle → compare → eliminate half → repeat. This needs to be a linked description — not just a list.
+20 XP
2 marksBubble sort efficiency1CP2 Jun 2024 Q1(f)(ii) style

A sorting algorithm runs on a small list and executes quickly. Explain why this does not mean it will execute quickly on a very large list. (2 marks)

Hint: Link: small list → few comparisons → fast. Large list → many more comparisons → slow. The key is the relationship between list size and number of comparisons.
+20 XP
1 markBinary search requirement1CP2 style

What is the prerequisite for using a binary search?

A The list must contain only integers
B The list must have fewer than 100 items
C The list must be sorted in order
D The list must be stored in a 2D array
Quick recall flashcards

Module complete! 🎉

Score loading...

⚡ +10 XP