2 2 votes Which of the following statements is/are not correct?(Here $o, \omega$ represents small-oh and small-omega, respectively.)The average-case time complexity of quicksort $=\omega$ (the average case time complexity of mergesort) The best-case time complexity of quicksort = o(the best-case time complexity of mergesort) The best-case behaviour occurs for quicksort when the partition splits the array of size $n$ into $n / 2:(n / 2)-1$ Quicksort is a stable algorithm Algorithms goclasses algorithms goclasses-cs-dpp goclasses-cs-dpp-day-69 goclasses-algorithms-practice-questions multiple-selects + – GO Classes 276 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes The average and best-case time complexity of both algorithms is $\Theta$ (nlogn)Quicksort is not stable GO Classes answered Aug 28, 2025 • reshown Aug 29, 2025 by GO Classes GO Classes comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes \(f(n) = o(g(n))\) means \(f(n)\) grows strictly slower than \(g(n)\).\(f(n) = \omega(g(n))\) means \(f(n)\) grows strictly faster than \(g(n)\).Statement A: INCORRECTAverage-case of Quicksort = \(\Theta(n \log n)\)Average-case of Mergesort = \(\Theta(n \log n)\)Since both algorithms have the exact same growth rate in the average case, Quicksort cannot grow strictly faster (\(\omega \)) than Mergesort. They are asymptotically equal (\(\Theta \)).Statement B: INCORRECTBest-case of Quicksort = \(\Theta(n \log n)\)Best-case of Mergesort = \(\Theta(n \log n)\)Since both are \(\Theta(n \log n)\) in their best case, Quicksort cannot grow strictly slower (\(o\)) than Mergesort.Statement D: INCORRECTQuicksort is unstable by default. Sandy_05 answered Jul 1 Sandy_05 comment Share Follow 0 reply Please log in or register to add a comment.