The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+11 votes
1.3k 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.5k points) | 1.3k 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.7k points)
edited by
+7 votes
Merge sort has lowest worst case time complexity i.e O(nlogn)
answered by Boss (14.2k points)
edited by
+4 votes
MERGE SORT all others have the worst case complexity O(n^2)
answered by (215 points)


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

38,058 questions
45,554 answers
131,900 comments
48,919 users