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 the following number series only one number is wrong. Find out the wrong number.
18, 119, 708, 3534, 14136, 42405
At half past 5 in the evening, the smaller angle between the hour & minute hands of a clock is:
Which of the following letter-clusters should replace # and % so that the pattern and relationship followed between the letter-cluster pair on the left ...
Select the figure from among the given options that can replace the question mark (?) in the following series and complete the pattern.
Three of the following word pairs are alike in some manner and hence form a group. Which word pair does not belong to that group?
(The words must...
Select the number from among the given options that can replace the question mark (?) in the following series.
337, 354, 373, 394, 417, ?
Mahathir is Najma’s husband. Najma’s son, Kamran’s wife Reshma has a son named Ashraf. Ashraf’s only sister is Urja. How is Mahathir related to ...
Three statements in this question and three related conclusions have been given to them, assuming that the statements given in the statements to be true...
If the letters ‘Q B Z H X K H Q D U M B’ are placed in the order opposite to the one in which these normally appear in English Alphabet (i.e., in re...
Seven teachers A, B, C, D, E, Y and Z are sitting in a straight row, facing north. Only A sits between E and D. Only B sits between Z and Y. Only C sits...