GATE | GATE 2017 MOCK II | Question 12
Consider a sorted array of n elements. Let k inversions (swapping) have been performed on the sorted array and we want to sort it again to reverse effect of inversions. If K is very small in comparison to n, then which sorting technique will prove efficient for making again the list in sorted increasing order array.
(A) Selection Sort
(B) Insertion Sort
(C) Bubble Sort
(D) Quick Sort
Answer: (B)
Explanation: Insertion sort is directly proportional to number of inversions present in the list.
Quiz of this Question
Recommended Posts:
- GATE | GATE 2017 MOCK II | Question 21
- GATE | GATE 2017 MOCK II | Question 7
- GATE | GATE 2017 MOCK II | Question 6
- GATE | GATE 2017 MOCK II | Question 5
- GATE | GATE 2017 MOCK II | Question 4
- GATE | GATE 2017 MOCK II | Question 3
- GATE | GATE 2017 MOCK II | Question 2
- GATE | GATE 2017 MOCK II | Question 1
- GATE | GATE 2017 Mock | Question 65
- GATE | GATE 2017 Mock | Question 64
- GATE | GATE 2017 Mock | Question 63
- GATE | GATE MOCK 2017 | Question 62
- GATE | GATE 2017 MOCK II | Question 8
- GATE | GATE 2017 MOCK II | Question 9
- GATE | GATE 2017 MOCK II | Question 20



