Question: 1) For the following question, how will the array elements look like after second pass of Insertion sort? 34,8,64,51,32,21 8,21,32,34,51,64 8,32,34,51,64,21 8,34,51,64,32,21 8,34,64,51,32,21 2) What

 1) For the following question, how will the array elements look

1) For the following question, how will the array elements look like after second pass of Insertion sort? 34,8,64,51,32,21 8,21,32,34,51,64 8,32,34,51,64,21 8,34,51,64,32,21 8,34,64,51,32,21 2) What is the disadvantage of selection sort? It requires auxiliary memory It is not scalable It can be used for small keys It takes linear time to sort the elements 3) Which of the following is an advantage of optimized bubble sort over other sorting techniques in case of sorted elements? Detects whether the input is already sorted Consumes less memory It is faster Consumes less time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!