Question: 1. You are to sort a list L consisting of a sorted list followed by a few random elements. Which of sorting methods would be
1. You are to sort a list L consisting of a sorted list followed by a few "random" elements. Which of sorting methods would be especially suitable for such a task? Explain your reason.
2. Which searching technique/s takes O (1) time to find a data. Give reasons.
Step by Step Solution
3.55 Rating (155 Votes )
There are 3 Steps involved in it
1 For a sorted list with few random numbers Bubble sort ... View full answer
Get step-by-step solutions from verified subject matter experts
