Binary search (Edexcel GCSE Computer Science): Quizzes

📚Quizzes
Binary search
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

12 questions from this quiz

Show

What is the critical requirement for binary search to work?

The list must be sorted

What strategy does binary search use?

Divide-and-conquer

If the search item is smaller than the median, what do you discard?

Median and everything to its right

If the search item is larger than the median, what do you discard?

Median and everything to its left

In a list of 13 items, which item is the median?

The 7th item

In a list of 10 items, which position is the median?

Position 5

What formula finds the median position in binary search?

length of list+12\frac{\text{length of list} + 1}{2}

When does binary search successfully terminate?

When search item equals the median

What does each step of binary search eliminate?

Roughly half of remaining possibilities

For 1000 items, what's the maximum checks binary search needs?

10 checks

In the worked example, how many steps did it take to search 11 cards?

3 steps

Why is binary search more efficient than linear search?

Logarithmic time complexity

Join 100,000+ GCSE students studying Quizzes with us.

Select your subjects, and get access to A+ resources today.