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.
In response to the AI safety challenges, which two countries agreed to jointly develop tests for advanced AI models in 2024?
Which university has built the first-ever subsea research lab in Asia for fostering multi-disciplinary talent for the global oil and gas industry?
What is the objective of the pact signed between RITES and Indian Railway Finance Corporation (IRFC)?
What is the main focus of the 6th Rashtriya Poshan Maah celebrated by the Ministry of Women and Child Development in September 2023 as part of the POSHA...
The Mission Amrit Sarovar, launched on 24th April 2022, with the objective of conserving water for the future, is spearheaded by which ministry?
How much money did LIC receive by selling 2% of its stake in NMDC?
Iran successfully launched its second satellite of 2024 into a 550-kilometer orbit. What is the name of this satellite?
NAFED is an apex organization of marketing cooperatives for agricultural produce in India.The organization comes under which Ministry ?
Who is appointed as the next Prime Minister of Israel?
In a pioneering initiative to take tourism deep into the state's interiors and rural hinterland, _____...