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.
What is the percentage of nitrogen present in farm yard manure (FYM) in general?
Consider the following statements
Statement I: Clay layers are poor aquifers.
Statement II: The inter-particle space of clay minerals is t...
The amount of water vapors differs from place to place. Its amount is minimum in which of the following places?
Which one of the following wave- lengths of light is most effective in photosynthesis?
Which of the following is not a characteristic of prokaryotic cells?
When carbon dioxide gas is passed through lime water, a white precipitate is formed, which dissolves on
passing excess of carbon dioxide. The...
Which of the following is the most common cause of stomach ulcers?
A body of mass 4 kg falls freely from a height of 5 m. What is its kinetic energy just before it hits the ground? (Take g = 10m/s²)
What is the primary function of dietary fiber?