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.
A rectangular park with length and breadth of 13 m and 19 m, is surrounded by a path of 3 m wide. Find the area of the path.
The lateral surface area of a cube is 196 cm2 . The length of a cuboid is 50% more than the side of the cube. The breadth of the cuboid is 3 ...
If the side of square and its area is in the ratio of 9:45 then find its perimeter?
The length of a plot is eight times its breadth. A playground measuring 256 square metres occupies half of the total area of the plot. What is the lengt...
The perimeter of a square is the same as that of a rectangle with length 18 cm and width 10 cm. What will be the circumference of a semicircle whose rad...
A solid rectangular parallelepiped (cuboid) has dimensions 10 cm × 8 cm × 6 cm. It is melted and cast into small cubes each of side 2 cm. How many suc...
Due to economic surge the price of eggs suddenly reduced by 40%. This enabled a woman to buy 64 more for $30. Then the reduced price per dozen is :
Find the number of silver balls of diameter 2 cm each, that can be made from a sphere of diameter 32 cm?
Find the time taken by a pipe, which releases 121.5 m3 of water in a minute to fill an empty cylindrical tank of radius 9 m and height 10 m. ...
Angle bisectors of Q and R meet at point S, inside the triangle PQR. If angle QSR = 126Ëš , then the measure of angle P is: