Question 1

AQA Computer Science June 2022 Paper 1 (7517/1)A level3 marks

On the specification

4.3 Fundamentals of algorithms4.4 Theory of computation
Question text

1 Big-O notation is used to express the time complexity of an algorithm. Table 1 contains a list of algorithms. State the Big-O time complexity of each of these algorithms. The first row has been completed for you. Table 1 Algorithm Time complexity Binary tree search O(log n) Bubble sort Linear search Merge sort Copy the contents of the unshaded cells in Table 1 into the table in your Electronic Answer Document. [3 marks]