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
Order 32 of CPC is related to:
Provisions as to the Administration of Tribal Areas as to Assam, Meghalaya, Tripura and Mizoram is in which schedule of the Constitution of India?
As per Section 8A(1)(b), one of the actions the Commission may take is:
What is the Limitation period for cognizance of a complaint under the Consumer Protection Act, 2019?
What is the total managerial remuneration payable by a public company, to its directors, including managing director and whole-time director, and its ma...
Under Section 199 of the BNS, 2023, a woman reports to the police station that she has been harassed through digital messages by an unknown person, con...
A suit is duly instituted if filed as per ____ of CPC:
Which of the following is the correct position about jurisdiction for offences or contraventions committed outside India under the IT Act, 2000?
A person is found in possession of stolen property without any reasonable explanation, and the property matches the description of stolen goods from a r...
According to the Bharatiya Nyaya Sanhita, 2023 what does petty organized crime mean?