Array
|
3
|
5
|
8
|
4
|
1
|
9
|
-2
|
6
|
1st Pass
|
|
|
|
|
|
|
|
|
2nd Pass
|
|
|
|
|
|
|
|
|
3rd Pass
|
|
|
|
|
|
|
|
|
4th Pass
|
|
|
|
|
|
|
|
|
5th Pass
|
|
|
|
|
|
|
|
|
6th Pass
|
|
|
|
|
|
|
|
|
7th Pass
|
|
|
|
|
|
|
|
|
An array is given as follows (an array starts at index 0)
Insertion sort is applied to sort this array. At any instant the value of j = 5
Identify the value of key at this instant _______________________
How many elements are sorted at this time _______________________
What is the index position of element 67 at this instance _______________________
Do'stlaringiz bilan baham: |