logo

AQA A-Level Computer Science practice

Analyse the time complexity of merge sort. State the required Big O notation and explain how the Divide and Conquer process relates to this complexity.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Sorting algorithms

Exam-style question

Try this first

Analyse the time complexity of merge sort. State the required Big O notation and explain how the Divide and Conquer process relates to this complexity.

Answer and explanation

Concise answer

The time complexity of merge sort is O(n log n).

Why this is correct

A complete analysis should identify both the Divide and Conquer structure and the required complexity. The division produces the logarithmic factor, while processing the items during merging produces the n factor.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions