Question: 1) The best case of insertion sort is Select one: a. When the array is not norted b. when the array has distinct items c.

1)

The best case of insertion sort is

Select one:

a.

When the array is not norted

b.

when the array has distinct items

c.

When the array is sorted

d.

No best case

2)

Let array A[] = {20, 22, 33, 36, 38, 49, 50, 61,63, 73, 74, 77, 85, 90, 97} and the search key K =90. In the interpolation search we find the key after

a.

3 iterations

b.

1 iteration

c.

2 iterations

d.

4 iterations

3)

The number of comparisons is required in insertion sort to sort an array if it is already sorted is n-1

Select one:

True

False

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!