Question 3
OCR Computer Science November 2021 Algorithms and programming (H446-02)A level7 marks
On the specification
- (a)
- 2.3 Algorithms
- (b)
- 2.2 Problem solving and programming2.3 Algorithms
Question text
3 (a) A one dimensional array holds data that needs to be sorted. Describe how a quicksort would sort data into ascending order. [5] (b) Explain why a quicksort is known as a divide and conquer algorithm. [2]