Back to the 2024 paper

Module 2: Divide and Conquer Paradigm and Heaps

20242m

The worst case running times of Insertion sort, Merge sort and Quick sort, respectively, are:

  • (i) Θ(nlogn)\Theta(n \log n), Θ(nlogn)\Theta(n \log n) and Θ(n2)\Theta(n^2)
  • (ii) Θ(n2)\Theta(n^2), Θ(n2)\Theta(n^2) and Θ(nlogn)\Theta(n \log n)
  • (iii) Θ(n2)\Theta(n^2), Θ(nlogn)\Theta(n \log n) and Θ(nlogn)\Theta(n \log n)
  • (iv) Θ(n2)\Theta(n^2), Θ(nlogn)\Theta(n \log n) and Θ(n2)\Theta(n^2)

Similar questions