Question
Which all statements are correct about
SortingSolution
Option 5: only b and d Explanation
- Bubble sort has O(n^2) as best case time complexity
- This statement is incorrect . The best case time complexity for Bubble Sort is O(n) , which occurs when the array is already sorted. In such cases, Bubble Sort can detect the sorted array early and terminate.
- Selection sort has O(n^2) as best case time complexity
- This statement is correct . Selection Sort always has a time complexity of O(n^2) , regardless of the initial ordering of the elements. This is because it always goes through the entire list to find the minimum element for each position.
- Insertion sort has O(n^2) as best case time complexity
- This statement is incorrect . The best case time complexity for Insertion Sort is O(n) , which occurs when the array is already sorted. In such cases, each insertion requires only one comparison.
- Radix sort has O(n+K) as best case time complexity
- This statement is correct . Radix Sort has a time complexity of *O(d(n + k))**, where d is the number of digits in the largest number and k is the range of the digit (base of the number system). In many cases, it is simplified to O(n + k) if the number of digits d is considered a constant.
- Selection Sort has O(n^2) as its best case time complexity.
- Radix Sort has O(n + k) as its best case time complexity
Which state government recently announced a special scheme offering a 50% subsidy on Nano Urea and Nano DAP to promote sustainable agricultural practices?
Under the PM Awas Yojana (Urban), which of the following components specifically targets the provision of houses to the Economically Weaker Sections (EW...
With reference to Assam’s launch of the AI anchor “Ankita”, consider the following statements:
1. “Ankita” is Assam’s first AI news a...
When was the Pradhan Mantri Gram Sadak Yojana launched?
Which financial platform did NPCI establish to handle bill payment transactions?
Who held a meeting with a Russian delegation led by H.E. Mr. Denis Gribov, Deputy Minister of Education of the Russian Federation, on collaboration in t...
Which state launched the ‘Rajiv Gandhi Civils Abhayahastam’ scheme in July 2024 to support UPSC Mains aspirants financially?
What is the theme for World Organ Donation Day 2024, observed on August 13?
Where was SPACE, a premier testing & evaluation hub for sonar systems for the Indian Navy, set up by DRDO, inaugurated?
What is the title of the book launched by Sri Lanka’s former President Gotabaya Rajapaksa, defending his regime against a perceived conspiracy?
...