126 126 votes The tightest lower bound on the number of comparisons, in the worst case, for comparison-based sorting is of the order of $n$ $n^2$ $n \log n$ $n \log^2n$ Algorithms gatecse-2004 algorithms sorting asymptotic-notations easy + – Kathleen 51.6k views answer comment Share Follow Print See all 13 Comments 13 13 Comments reply Show 10 previous comments js__ commented Oct 18, 2025 reply Follow flag The phrase "the tightest lower bound on the number of comparisons, in the worst case" means:"We are considering all possible algorithms that can solve this problem. For each of those algorithms, we find its worst-case performance. What is the absolute best performance we can find among all of those worst cases?" 5 5 replyShare Tejaswee_Bommaluleni commented Nov 9, 2025 reply Follow flag There is high chances of people answering either O(n) or O(n^2). But...The question asked to find minimum no.of comparisons in worst case.So,O(n) can't be the answer since it is in best case for insertion sort and O(n^2) can't be the answer since they asked minimum no.of comparisons.Hence ,the minimum no.of comparisons is O(nlogn) in case of merge sort in worst case . 4 4 replyShare Sudhanshu_Vinayak_Ti commented Dec 20, 2025 reply Follow flag @ShamikBanerjee then to perform hashing it will take infinite time since the slots are infinite in infinite hash table. -not a thug life 0 0 replyShare Please log in or register to add a comment.
0 0 votes Am I thinking it in correct way?Any comparision based algorithm , will take in worst case minimum nlogn comparisons right and maximum n^2So with this we can safely say answer is C. mo7ammedfarooq answered Nov 16, 2025 mo7ammedfarooq comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes COMMENT BELOW IF YOU HAVE ANY DOUBT akshay_123 answered May 25 akshay_123 comment Share Follow 0 reply Please log in or register to add a comment.