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
__________is the process that connects to a network without the use of cables.
If × stands for addition, ÷ stands for subtraction. + stands for multiplication and ̶ stands for division, then what is the value of 20 &t...
A sum of Rs. 663 is divided among X, Y and Z such that X gets Rs. 156 more than Y. Y gets Rs. 78 more than Z. Find the share of Z?
In a mixture 'P', 5 liters of water are replaced with honey, resulting in the mixture containing 55% honey. If the original mixtu...
A ________________ typically connects personal computers within a very limited geographical area, usually within a single building.
Formatting a disk means?
A sum of Rs.8200 is to be divided among 6 brothers, 5 sisters and 2 aunts. If each sister receives thrice as much as each aunt and each brother receives...
Ehsaan is twice as good a worker as Kamal and together they finish a piece of work in 29 days. In how many days will Kamal, working alone, finish the wo...
₹ 1,800 is divided among Nitin, Tushar and Gitanjali. The share of Gitanjali is 5/4 of the sum of the shares of Nitin and Tushar. What is the share of...
The number of five–digit telephone numbers having at least one of their digits repeated is