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.
Some equations are solved on the basis of a certain system. Find the correct answer for the given equations on that basis:-
5 Γ 7 Γ 4 = 53
...While tapping on to the potential of rapid technological development in the industry, Verbal, a brand specializing in music systems and other related ac...
In which direction is Saurabh with respect to Nisha?
In each question a statement is given, followed by two assumptions, numbered I and II. An assumption is supposed or taken for granted. You have to cons...
In the following question, select the missing number of the given series.
41, 44, 53, 80, ?, 404
The ratio of income and expenditure of Priya is 23:15, respectively. Her friend Riya saves 40% more than Priya. If Priya’s expenditure is Rs. 18,7...
. If the consonants of the following words are arranged first, followed by the vowels as per the English alphabetical order and then the consonants are ...
Select the letter-cluster from among the given option that can replace the question mark (?) in the following series.
GPSU, KLVR, OHYO, SDBL, ?
Which of the following statement is true regarding M?
OCR stands for: