Start learning 50% faster. Sign in now
Get Started with ixamBee
Start learning 50% faster. Sign in nowCorrect 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 which Raising Day Parade did Union Minister Ashwini Vaishnaw participate in Nashik?
Which state has launched the "Nijut Moina" scheme offering monthly stipends to girl students to promote education and prevent child marriages?
According to the Census 2011, Ghaziabad is top-ranked in terms of population density in Uttar Pradesh, while the second position is of:
Which mobile payment company recently got Prepaid Payment Instrument (PPI) license from RBI
Through which portal can training institutions apply for financial support from NABARD for rural youth training?
Bilateral exercise Samudra Shakti-23 was held from 14-19 May 23. The exercise held between India & which other country?
Who among the following is the chairman of the 14th Finance Commission?
SMERA, a rating agency is established by –
The Olympic Games are held every ____ years.
What does "SD" stand for in SD cards?