D1 January 2009 Q1

EdexcelOld spec9 marksAlgorithms

1.

MaxLaurenJohnHannahKieranTaraRichardImogen
(a) Use a quick sort to produce a list of these names in ascending alphabetical order.
You must make your pivots clear. (5)
(b) Use the binary search algorithm on your list from part (a) to try to locate the name ‘Hugo’. (4)