Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged sorting
1
1 vote
1
1 answer
135
135 views
GO Classes DPP | GATE CS, DA | Algorithms | Sorting Complexity
Let $P$ be the problem of sorting $n\geq1$ elements using only comparisons.Consider the class of all comparison-based algorithms that correctly solve $P$.What is the asym...
GO Classes
135
views
asked
Aug 25
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-258
goclasses-cs-dpp
goclasses-cs-dpp-day-356
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
time-complexity
+
–
3
3 votes
2
2 answers
240
240 views
GO Classes DPP | GATE CS, DA | Algorithms | Identify Sort State
You are given an initial array:$[22,10,14,37,14,4,3]$For the following array, indicate which sorting algorithm could produce this state after an iteration has completed:$...
GO Classes
240
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
+
–
2
2 votes
2
2 answers
215
215 views
GO Classes DPP | GATE CS, DA | Algorithms | Bubble Sort
Which algorithm-design strategies can reasonably describe Bubble Sort?Greedy Brute force Decrease-and-conquer Divide-and-conquer Dynamic programming
GO Classes
215
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
bubble-sort
multiple-selects
+
–
3
3 votes
2
2 answers
180
180 views
GO Classes DPP | GATE CS, DA | Algorithms | Selection Sort
What effect does the initial ordering of the records have on the number of comparisons performed by standard Selection Sort?No effect Only a constant-factor difference Th...
GO Classes
180
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
selection-sort
+
–
2
2 votes
2
2 answers
210
210 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
210
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
+
–
2
2 votes
2
2 answers
171
171 views
GO Classes DPP | GATE CS, DA | Algorithms | Bubble Sort
After the first complete pass of Bubble Sort on an array of size $n$, which element is guaranteed to be in its correct position?The smallest element The largest element A...
GO Classes
171
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
bubble-sort
+
–
2
2 votes
2
2 answers
183
183 views
GO Classes DPP | GATE CS, DA | Algorithms | Sorting Comparison
Problem: Sort a file of huge records with tiny keys.Example application: Reorganize your MP-$3$ files.Which sorting method to use?a system sort, guaranteed to run in time...
GO Classes
183
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
+
–
1
1 vote
2
2 answers
157
157 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
157
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
+
–
1
1 vote
2
2 answers
162
162 views
GO Classes DPP | GATE CS, DA | Algorithms | Selection Sort
Suppose that a selectionsort of $100$ items has completed $42$ iterations of the main loop. How many items are now guaranteed to be in their final spot (never to be moved...
GO Classes
162
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
selection-sort
+
–
1
1 vote
2
2 answers
158
158 views
GO Classes DPP | GATE CS, DA | Algorithms | Selection Sort
In a selectionsort of n elements, how many times is the swap function called in the complete execution of the algorithm?$1$ $n-1$ $n\log n$ $n^2$
GO Classes
158
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
selection-sort
+
–
2
2 votes
2
2 answers
174
174 views
GO Classes DPP | GATE CS, DA | Algorithms | Bubble Sort
The nontrivial operation involved in the bubble sort is comparing two numbers, i.e., checking the $\texttt{if}$ condition in the inner $\texttt{for}$ loop.How many compar...
GO Classes
174
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
bubble-sort
+
–
2
2 votes
2
2 answers
189
189 views
GO Classes DPP | GATE CS, DA | Algorithms | Selection Sort
Consider an array containing $2n$ elements:$1,\ n+1,\ 2,\ n+2,\ 3,\ n+3,\ldots,n,\ 2n$For example, when $n=8$:$1,\ 9,\ 2,\ 10,\ 3,\ 11,\ 4,\ 12,\ 5,\ 13,\ 6,\ 14,\ 7,\ 15...
GO Classes
189
views
asked
Aug 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-246
goclasses-cs-dpp
goclasses-cs-dpp-day-344
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
selection-sort
+
–
1
1 vote
1
1 answer
120
120 views
GO Classes DPP | GATE CS, DA | Algorithms | Non-Comparison Sorting
You need to sort hotels on a travel website according to their star rating.Which sorting algorithm would be the most appropriate?Insertion sort Merge sort Quicksort Bucke...
GO Classes
120
views
asked
Aug 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-246
goclasses-cs-dpp
goclasses-cs-dpp-day-344
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
bucket-sort
+
–
1
1 vote
1
1 answer
166
166 views
GO Classes DPP | GATE CS, DA | Algorithms | Merge Sort
Mergesort recursively sorts the two halves of an array.After both recursive calls have finished, but before the merge operation, which statement must be true?The complete...
GO Classes
166
views
asked
Aug 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-246
goclasses-cs-dpp
goclasses-cs-dpp-day-344
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
merge-sort
+
–
1
1 vote
1
1 answer
141
141 views
GO Classes DPP | GATE CS, DA | Algorithms | Identify the Sort
A quadratic sorting algorithm has completed four iterations. The array is now:$1,\ 2,\ 3,\ 4,\ 5,\ 0,\ 6,\ 7,\ 8,\ 9$Assume that selection sort places the largest element...
GO Classes
141
views
asked
Aug 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-246
goclasses-cs-dpp
goclasses-cs-dpp-day-344
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
sorting
+
–
0
0 votes
1
1 answer
145
145 views
GO Classes DPP | GATE CS, DA | Algorithms | Sorting Comparison
Which of the following algorithms is better when dealing with reverse sorted numbers?Quicksort Heap sort Insertion sort all are equally good
GO Classes
145
views
asked
Aug 10
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
sorting
+
–
2
2 votes
2
2 answers
181
181 views
UGC NET CSE | December 2025 | Part 2 | Question: 41
Which of the following is correct order of increasing time complexity of algorithmsTower of Hanoi with $n$ disk.Binary search given $n$ sorted numbers.Heap sort given $n$...
Shubham Sharma 2
181
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
time-complexity
algorithm-design
sorting
recursion
matrix
searching
+
–
2
2 votes
2
2 answers
878
878 views
GATE DA 2026 | Question: 39
Consider the problem of sorting the given array in ascending order:\[P=[1,2,3,5,4]\]Consider two sorting algorithms Bubble Sort $\text{(BS)}$ and Insertion Sort $\text{(I...
gatecse
878
views
asked
Feb 23
Algorithms
gateda-2026
algorithms
sorting
multiple-selects
two-marks
+
–
Page:
1
2
3
4
5
6
...
23
next »