Question 3
AQA Computer Science June 2017 Paper 1A level5 marks
On the specification
- 3.1
- 4.3 Fundamentals of algorithms4.4 Theory of computation
- 3.2
- 4.4 Theory of computation
- 3.3
- 4.3 Fundamentals of algorithms4.4 Theory of computation
- 3.4
- 4.3 Fundamentals of algorithms4.4 Theory of computation
Question text
3 Table 2 lists some well-known algorithms. Table 2 Algorithm Linear search Merge sort Binary search Post-order tree-traversal 3.1 Which of the algorithms listed in Table 2 has 𝑂(𝑛 log 𝑛) time complexity? [1 mark] 3.2 How many of the algorithms listed in Table 2 are algorithms used to solve tractable problems? [1 mark] 3.3 State the time complexity for the bubble sort algorithm in terms of 𝑛, where 𝑛 is the number of items in the list to be sorted. [1 mark] 3.4 Explain why the bubble sort algorithm has the time complexity stated in your answer to 0 3 . 3 [2 marks]