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
The cost price of 28 articles is the same as the selling price of βxβ articles. if the profit is 40%, then find the value of βxβ.
A fruit seller buys oranges at the rate of 11 for βΉ55. How many oranges should he sell for βΉ54 to gain 20%?
A shopkeeper made a profit of 26% by selling an article for Rs. 2520. If he had sold it after allowing a discount of 20% on its selling price, then find...
The ratio of cost price and selling price of a shirt is 5:6 respectively. The shirt was marked up by 25% above its cost price, and sold after giving Rs....
If 15 buttons are bought at Rs 1 and sold at the rate of 10 buttons at Rs 1, what will be the percentage profit?
A person bought an article and sold it at a loss of 20%. If he had bought it at 10% less price and sold it for 7400 more, he would have gained 30%. Find...
A shopkeeper mixes 40 kg sugar worth Rs.15 per kg with 160 kg sugar worth Rs. 25 per kg. At what rate should he sell the mixture per kg to gain a profit...
- Varun sold an item to Ritu at a 12% profit. Ritu then sold it to Nikhil at a 28% profit. If Nikhil purchased the item for Rs. 798.72, what was the original...
The marked price of a product is Rs.320 more than the cost price. If 15% discount offered on the marked price and the profit percent on that product is ...
A laptop costs 20 times the cost of a headphone. On the laptop there is a profit of 10% while the total profit on selling the headphone and the laptop i...