Question
Which of the following is true about the time complexity
of Merge Sort?Solution
Correct Option: Merge Sort (C) has a time complexity of O(n log n) in both the best and worst cases due to its divide-and-conquer approach, where the list is recursively split and merged. Why Other Options Are Wrong: A) O(n), O(n^2): Merge Sort does not have a quadratic time complexity in the worst case, nor does it achieve linear time in the best case. B) O(log n), O(log n): This is incorrect as merge sort deals with linear elements and requires O(n log n) time due to both sorting and merging. D) O(n), O(n log n): While some algorithms achieve linear time in the best case, Merge Sort consistently performs at O(n log n). E) O(n^2), O(n^2): This complexity is associated with algorithms like bubble sort in the worst case, not Merge Sort.
Who was the founder of Arya Samaj?
Which of the following taxes is proportional in nature?
Which of the following feature was borrowed from the Union of Soviet Socialist Republics (USSR) in Indian Constitution?
Which of the following statement is correct about International Craft Summit 2023?
I. Odisha Chief Minister Naveen Patnaik in January 2023 inaugu...
A solid circular metallic disc of radius 12 inches and thickness 4 inches is melted and shaped into a solid disc of radius 16 inches. What is the thickn...
Who ruled Mysore under a subsidiary alliance with the British after the defeat of Tipu Sultan at the Battle of Seringapatam?
Which programming language is commonly used for developing artificial intelligence and machine learning applications?
Find the next number in the series: 8, 16, 32, 64?
Which of these statements accurately describe the annual budget presented by Odisha for FY 2024-25?
A.Chief Minister Mohan Charan Majhi announced...
Novak Djokovic matches which player record with 6th ATP Finals title?