Edexcel D1 2004 June — Question 4

Exam BoardEdexcel
ModuleD1 (Decision Mathematics 1)
Year2004
SessionJune
TopicNetwork Flows

4.
  1. Glasgow
  2. Newcastle
  3. Manchester
  4. York
  5. Leicester
  6. Birmingham
  7. Cardiff
  8. Exeter
  9. Southampton
  10. Plymouth
A binary search is to be performed on the names in the list above to locate the name Newcastle.
  1. Explain why a binary search cannot be performed with the list in its present form.
  2. Using an appropriate algorithm, alter the list so that a binary search can be performed. State the name of the algorithm you use.
  3. Use the binary search algorithm on your new list to locate the name Newcastle.