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
In which year was the Bureau of Energy Efficiency (BEE) established?
Who has become the second youngest Indian to score a fifty in T20I cricket?
What is the total investment allocated to connect 38,260 villages under India’s SATCOM initiative?
Which ministry launched a scheme to establish a sustainable electronics component ecosystem in India?
On which Occasion Gallantry awards the “Param Vir Chakra '' and “ Ashok Chakra '' are awarded?
Recently Ministry of Fisheries, Animal Husbandry and Dairying inaugurated 29 Mobile Veterinary Units and centralized call center in for the benefit of t...
Who is the CEO of India Post Payments Bank?Â
Recently Jitendra Singh (Science and Technology Minister) has launched India’s first Virtual Science Lab for Children under CSIR (Council of Scien...
Which organization recently entered into a 3-year partnership with the Ministry of Education and Ministry of Skill Development & Entrepreneurship in Ind...
Neeraj Chopra has qualified for Paris Olympics 2024 with a throw of how many metres?