Question 6
OCR Computer Science Specimen Paper 2GCSE8 marks
On the specification
- (a)
- 2.1 Algorithms
- (b)
- 2.1 Algorithms
Question text
6 A program uses a file to store a list of words that can be used in a game. A sample of this data is shown in Fig. 3. crime bait fright victory nibble loose Fig. 3 (a) Show the stages of a bubble sort when applied to data shown in Fig. 3. (b) A second sample of data is shown in Fig. 4. amber house kick moose orange range tent wind zebra Fig. 4 Show the stages of a binary search to find the word zebra using the data shown in Fig. 4.