The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+11 votes
1.4k views

Which of the following sorting algorithms has the lowest worse-case complexity?

  1. Merge sort

  2. Bubble sort

  3. Quick sort

  4. Selection sort

asked in Algorithms by Veteran (59.7k points) | 1.4k views

3 Answers

+17 votes
Best answer

A.

Irrespective of the input, merge sort always have a time complexity of  $\Theta(n \log n)$.

answered by Boss (19.9k points)
edited by
+7 votes
Merge sort has lowest worst case time complexity i.e O(nlogn)
answered by Boss (14.4k points)
edited by
+4 votes
MERGE SORT all others have the worst case complexity O(n^2)
answered by (215 points)
Answer:

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

44,149 questions
49,639 answers
163,309 comments
65,807 users