Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Algorithms

EasyMedium
123456789101112131415161718
Question 17

A programmer is using an array to store the names of cities visited on a tour:

Figure 1

Index01234567
CityTorontoCairoMumbaiAthensBerlinLondonSydneyMunich

Explain why a binary search algorithm would fail to find 'Cairo' in this array.

[4]

Algorithms Questions

  1. IGCSE
  2. /Computer Science
  3. /Algorithms