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.
