Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged quick-sort
3
3 votes
1
1 answer
237
237 views
GO Classes DPP | GATE CS, DA | Algorithms | Quick Sort
During sorting, one complete processing of all elements whose final positions have not yet been determined is called a pass.Which of the following sequences cannot be the...
GO Classes
237
views
asked
Aug 31
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-262
goclasses-cs-dpp
goclasses-cs-dpp-day-360
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
quick-sort
+
–
1
1 vote
1
1 answer
155
155 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort Partitioning
While sorting the numbers $\text{(70, 48, 76, 58, 43, 47, 78, 53)}$ using quicksort, the last number is chosen as pivot, what will be the permutation of the numbers after...
GO Classes
155
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
quick-sort
+
–
0
0 votes
1
1 answer
146
146 views
GO Classes DPP | GATE CS, DA | Algorithms | Quick Sort
Consider the Quick sort algorithm which sorts elements in ascending order using the first element as pivot. Then which of the following input sequence will require a maxi...
GO Classes
146
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
quick-sort
+
–
0
0 votes
1
1 answer
169
169 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort Best Case
The best case behaviour occurs for quick sort is, if partition splits the array of size $n$ into$n/2:(n/2)-1$ $n/2:n/3$ $n/4:3n/2$ $n/4:3n/4$
GO Classes
169
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
quick-sort
+
–
5
5 votes
1
1 answer
350
350 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort
Randomized quicksort is applied to $n$ distinct keys, where $n$ is divisible by $16$.A pivot is chosen uniformly at random.What is the probability that both recursive sub...
GO Classes
350
views
asked
Aug 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-243
goclasses-cs-dpp
goclasses-cs-dpp-day-341
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
numerical-answers
+
–
3
3 votes
1
1 answer
201
201 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort
Consider an array of $2n$ elements of the form:$1,2n-1,2,2n-2,3,2n-3,4,2n-4,\ldots,n,n$For example, when $n=8$:$1,15,2,14,3,13,4,12,5,11,6,10,7,9,8,8$What is the number o...
GO Classes
201
views
asked
Aug 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-243
goclasses-cs-dpp
goclasses-cs-dpp-day-341
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
+
–
3
3 votes
1
1 answer
191
191 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort
Consider the problem of sorting an array of $n$ comparable elements in which there are only four distinct keys.It is possible to design an algorithm that makes at most $4...
GO Classes
191
views
asked
Aug 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-243
goclasses-cs-dpp
goclasses-cs-dpp-day-341
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
+
–
1
1 vote
1
1 answer
168
168 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort
Why do $2$-pivot and $3$-pivot quicksort generally perform better than $1$-pivot quicksort?They always perform fewer comparisons. They always perform fewer exchanges. The...
GO Classes
168
views
asked
Aug 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-243
goclasses-cs-dpp
goclasses-cs-dpp-day-341
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
+
–
2
2 votes
1
1 answer
150
150 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort Partition
In the worst case, approximately how many key comparisons and exchanges does the standard $\texttt{partition()}$ procedure perform on a subarray of length $n$?$\frac{n}{2...
GO Classes
150
views
asked
Aug 6
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-243
goclasses-cs-dpp
goclasses-cs-dpp-day-341
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
+
–
2
2 votes
1
1 answer
190
190 views
GO Classes DPP | GATE CS, DA | Algorithms | Quicksort Partition
The standard $2$-way quicksort partition procedure uses the first element as the pivot and stops both scans when they encounter an element equal to the pivot.It is applie...
GO Classes
190
views
asked
Aug 5
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-242
goclasses-cs-dpp
goclasses-cs-dpp-day-340
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
numerical-answers
+
–
4
4 votes
1
1 answer
140
140 views
GO Classes DPP | GATE CS, DA | Algorithms | Randomized Quicksort
An array contains $n\geq 8$ distinct elements:$a_1<a_2<\cdots<a_n$The array is sorted using randomized quicksort.What is the probability that $a_7$ and $a_8$ are compared...
GO Classes
140
views
asked
Aug 5
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-242
goclasses-cs-dpp
goclasses-cs-dpp-day-340
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
quick-sort
+
–
0
0 votes
1
1 answer
179
179 views
Quick Sort Space Complexity
1. what is the space Complexity of efficient Quick sort algorithem for best case ? in a lecture Reddy Sir Said that it is O(1) is this correct 2.if in the gate exam if t...
Udit_goyal
179
views
asked
May 6
Algorithms
algorithms
divide-and-conquer
quick-sort
gate-preparation
+
–
0
0 votes
0
0 answers
3
3 views
reddy sir lecture
1.what is the space Complexity of efficient Quick sort algorithem for best case ? in a lecture Reddy Sir Said that it is O(1) is this correct.2. if in the gate exam if th...
Udit_goyal
3
views
asked
May 6
Algorithms
algorithms
divide-and-conquer
quick-sort
gate-preparation
+
–
4
4 votes
2
2 answers
1.1k
1.1k views
GATE DA 2026 | Question: 5
Consider that the quick sort algorithm is used to sort an array of $n$ distinct randomly ordered elements. In every call, the pivot is chosen as the first element of the ...
gatecse
1.1k
views
asked
Feb 23
Algorithms
gateda-2026
algorithms
quick-sort
recurrence-relation
one-mark
+
–
0
0 votes
1
1 answer
690
690 views
Quick Sort Algorithm
In quick sorting algorithm 2 elements i and j are compared if and only if among all the elements, the element to be picked as pivot is either i or j. Is this statement tr...
dharmik_3103
690
views
asked
Dec 5, 2024
Algorithms
algorithms
quick-sort
true-false
+
–
14
14 votes
6
answers
6 answers
10.6k
10.6k views
GATE DS&AI 2024 | Question: 20
Consider sorting the following array of integers in ascending order using an inplace Quicksort algorithm that uses the last element as the pivot.\begin{array}{|l|l|l|l|l|...
Arjun
10.6k
views
asked
Feb 16, 2024
Algorithms
gate-ds-ai-2024
numerical-answers
algorithms
quick-sort
one-mark
+
–
2
2 votes
1
1 answer
870
870 views
Memory Based GATE DA 2024 | Question: 25
Consider the QuickSort algorithm with the last element chosen as the pivot. If the goal is to sort the given array \(a = [30, 40, 50, 60, 70, 80]\) in ascending order, ho...
GO Classes
870
views
asked
Feb 4, 2024
Algorithms
gate2024-da-memory-based
goclasses
algorithms
quick-sort
numerical-answers
+
–
0
0 votes
1
1 answer
1.1k
1.1k views
Quick sort
13, 60,19,52,45,27,41,30,34,32.. Is this sequence in an array a worst case for Quicksort if first element is choosen as pivot always?I have tried to run algorithm of Quic...
Kanha3112
1.1k
views
asked
Sep 12, 2023
Algorithms
algorithms
quick-sort
+
–
3
3 votes
1
1 answer
2.4k
2.4k views
Made Easy Test Series 2024
Which of the following statement(s) is/are true?(a) Quicksort and merge sort are both examples of divide and conquer algorithms.(b) If we randomly choose a pivot element ...
aashish1406
2.4k
views
asked
Aug 9, 2023
Algorithms
made-easy-test-series
made-easy-booklet
algorithms
divide-and-conquer
quick-sort
merge-sort
time-complexity
+
–
5
5 votes
3
3 answers
1.8k
1.8k views
In QuickSort algorithm, which of the following statements is NOT true regarding the partition process?
In QuickSort algorithm, which of the following statements is NOT true regarding the partition process?a) Partition always divides the array into two non-empty subsets.b) ...
dhruba
1.8k
views
asked
Jun 5, 2023
Algorithms
algorithms
quick-sort
time-complexity
array
+
–
Page:
1
2
3
4
5
6
next »