Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged insertion-sort
1
1 vote
1
1 answer
236
236 views
GATE@Zeal Basic DSA Searching and Sorting (Q24)
You have given an array A[] = {12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}. An inversion in an array A is a pair of array indices (i, j) such that i < j and A[i] A[j]. Assume...
Debargha Mitra Roy
236
views
asked
Sep 22
Algorithms
insertion-sort
array-inversion
+
–
2
2 votes
2
2 answers
224
224 views
GO Classes DPP | GATE CS, DA | Algorithms | Binary Search Insertion
Suppose Binary Search is used in Insertion Sort to locate where the $i$th element should be inserted among the first $i-1$ elements.What is the worst-case running time of...
GO Classes
224
views
asked
Aug 12
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-248
goclasses-cs-dpp
goclasses-cs-dpp-day-346
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
binary-search
insertion-sort
+
–
1
1 vote
2
2 answers
169
169 views
GO Classes DPP | GATE CS, DA | Algorithms | Insertion Sort
When is insertionsort a good choice for sorting an array?Each component of the array requires a large amount of memory. Each component of the array requires a small amoun...
GO Classes
169
views
asked
Aug 11
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-247
goclasses-cs-dpp
goclasses-cs-dpp-day-345
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
insertion-sort
+
–
0
0 votes
1
1 answer
130
130 views
GO Classes DPP | GATE CS, DA | Algorithms | Insertion Sort Properties
Which of the following is correct with regard to insertion sort?insertion sort is stable and it sorts In-place insertion sort is unstable and it sorts In-place insertion ...
GO Classes
130
views
asked
Aug 8
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-245
goclasses-cs-dpp
goclasses-cs-dpp-day-343
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
insertion-sort
+
–
1
1 vote
1
1 answer
142
142 views
GO Classes DPP | GATE CS, DA | Algorithms | Insertion Sort Iterations
How many iteration on an array of size $N$, does insertion sort algorithm consist of?$N$ $N-1$ $N+1$ $N^2$
GO Classes
142
views
asked
Aug 8
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-244
goclasses-cs-dpp
goclasses-cs-dpp-day-342
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
insertion-sort
+
–
0
0 votes
1
1 answer
122
122 views
GO Classes DPP | GATE CS, DA | Algorithms | Insertion Sort Execution
Consider an array of elements $5, 4, 3, 2, 1$, what are the steps of insertions done while doing insertion sort in the array.$(4,5,3,2,1) \rightarrow (3,4,5,2,1) \rightar...
GO Classes
122
views
asked
Aug 8
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-244
goclasses-cs-dpp
goclasses-cs-dpp-day-342
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
insertion-sort
+
–
1
1 vote
1
1 answer
111
111 views
GO Classes DPP | GATE CS, DA | Algorithms | Insertion Sort Properties
Consider the following two statementsStatement $1:$ In insertion sort, after $m$ passes through the array, the first $m$ elements are in sorted order.Statement $2:$ And t...
GO Classes
111
views
asked
Aug 8
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-244
goclasses-cs-dpp
goclasses-cs-dpp-day-342
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
insertion-sort
+
–
0
0 votes
1
1 answer
117
117 views
GO Classes DPP | GATE CS, DA | Algorithms | Insertion Sort Tracing
In Insertion sort, for the array $[34, 8, 64, 51, 32, 21]$, how will the array elements look like after second iteration$8, 21, 32, 34, 51, 64$ $8, 32, 34, 51, 64, 21$ $8...
GO Classes
117
views
asked
Aug 8
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-244
goclasses-cs-dpp
goclasses-cs-dpp-day-342
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
insertion-sort
+
–
3
3 votes
2
2 answers
569
569 views
TIFR CSE 2025 | Part B | Question: 11
Recall the insertion sort algorithm: procedure INSERTIONSORT(A) for i ← 1 to A.length - 1 do key ← A[i] j ← i - 1 while j ≥ 0 and A[j] key do A[j + ...
Shubham Sharma 2
569
views
asked
Jun 16, 2025
Algorithms
tifr2025
algorithms
sorting
insertion-sort
time-complexity
+
–
9
9 votes
6
6 answers
4.0k
4.0k views
GATE DA 2025 | Question: 19
Suppose that insertion sort is applied to the array $[1,3,5,7,9,11, x, 15,13]$ and it takes exactly two swaps to sort the array. Select all possible values of $x$.$10$$12...
Arjun
4.0k
views
asked
Feb 27, 2025
Algorithms
gateda-2025
algorithms
insertion-sort
sorting
multiple-selects
easy
one-mark
inversion
+
–
0
0 votes
0
0 answers
412
412 views
Time complexity
Deepalitrapti
412
views
asked
Sep 1, 2018
Algorithms
time-complexity
insertion-sort
+
–
2
2 votes
2
answers
2 answers
2.8k
2.8k views
Test by Bikram | Data Structures | Test 2 | Question: 30
Meena is working in an IT company as HR manager. She has a large list of potential candidates to be recruited which are all sorted by their names. But she found that due ...
Bikram
2.8k
views
asked
Nov 26, 2016
Programming in C
tbb-ds-2
data-structures
sorting
algorithm-design
quick-sort
heap-sort
insertion-sort
merge-sort
+
–
1
1 vote
1
1 answer
1.7k
1.7k views
NPTEL MOOC
Why option (A) is not correct ?
mcjoshi
1.7k
views
asked
Aug 23, 2016
Algorithms
sorting
insertion-sort
selection-sort
nptel-quiz
+
–
94
94 votes
11
answers
11 answers
32.0k
32.0k views
GATE CSE 2003 | Question: 62
In a permutation $a_1\ldots a_n$, of $n$ distinct integers, an inversion is a pair $(a_i, a_j)$ such that $i < j$ and $a_i a_j.$What would be the worst case time complex...
go_editor
32.0k
views
asked
Apr 24, 2016
Algorithms
gatecse-2003
algorithms
sorting
normal
insertion-sort
+
–
2
2 votes
1
answers
1 answer
1.1k
1.1k views
Number of Inversions
A) 192 B) 120 c) 188 D) 176
Himanshu1
1.1k
views
asked
Dec 16, 2015
Algorithms
algorithms
inversion
insertion-sort
+
–
86
86 votes
3
answers
3 answers
27.3k
27.3k views
GATE CSE 2003 | Question: 22
The usual $\Theta(n^2)$ implementation of Insertion Sort to sort an array uses linear search to identify the position where an element is to be inserted into the already ...
Kathleen
27.3k
views
asked
Sep 16, 2014
Algorithms
gatecse-2003
algorithms
sorting
time-complexity
normal
insertion-sort
+
–
To see more, click for the
full list of questions
or
popular tags
.