33 33 votes Which of the following sorting algorithms has the lowest worse-case complexity? Merge sort Bubble sort Quick sort Selection sort Algorithms gatecse-2007 algorithms sorting time-complexity easy + – Kathleen 16.2k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Show 4 previous comments Tushar Rana commented Dec 27, 2024 i edited by Tushar Rana Jan 10, 2025 reply Follow flag @Kimo123 The modification you are suggesting is making Bubble sort more efficient than others and it's not the worst case of bubble sorting, we need to compare every algorithm worst case times. Bubble's sort is O(n square). 2 2 replyShare 3301 commented Oct 13, 2025 reply Follow flag Ans: Option A (Merge Sort)Extra points regarding Best and Worst Case:1. Merge sort and heap sort ⇒ lowest worst-case complexity (𝜃(nlogn))2. Insertion sort ⇒ lowest best case complexity (O(n))3. Selection sort ⇒ Min number of swaps in worst case 1 1 replyShare Ujjwal_Nikam commented Nov 7, 2025 reply Follow flag AlgorithmWorst-Case Time ComplexityMerge SortO(nlogn)Bubble SortO(n^2)Quick SortO(n^2) (bad pivot case)Selection SortO(n^2) 3 3 replyShare Please log in or register to add a comment.
Best answer 41 41 votes Correct Option: A Irrespective of the input, merge sort always have a time complexity of $\Theta(n \log n)$. Gate Keeda answered Sep 23, 2014 • edited May 12, 2021 by soujanyareddy13 Gate Keeda comment Share Follow 0 reply Please log in or register to add a comment.
10 10 votes Merge sort has lowest worst case time complexity i.e O(nlogn) Bhagirathi answered Sep 22, 2014 • edited Sep 22, 2014 by Bhagirathi Bhagirathi comment Share Follow 0 reply Please log in or register to add a comment.
5 5 votes MERGE SORT all others have the worst case complexity O(n^2) Hai Hai answered Jul 27, 2015 Hai Hai comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote Irrespective of everything worst case for quick sort,bubble srt and selections sort is O(n^2) Whereas for merge sort it is O(nlog n) Arnabvasudev23 answered Aug 1, 2021 Arnabvasudev23 comment Share Follow 0 reply Please log in or register to add a comment.