Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged divide-and-conquer
1
1 vote
1
1 answer
135
135 views
GO Classes DPP | GATE CS, DA | Algorithms | Divide & Conquer
Consider three recursive algorithms.Algorithm $\mathbf{1}$Divides a problem of size $N$ into two subproblems of size $N/2$ and performs constant additional work.$T_1(N)=2...
GO Classes
135
views
asked
Aug 24
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-257
goclasses-cs-dpp
goclasses-cs-dpp-day-355
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
time-complexity
divide-and-conquer
+
–
5
5 votes
1
1 answer
330
330 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
330
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
185
185 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
185
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
174
174 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
174
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
153
153 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
153
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
135
135 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
135
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
175
175 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
175
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
+
–
5
5 votes
1
1 answer
178
178 views
GO Classes DPP | GATE CS, DA | Algorithms | Divide and Conquer
Suppose $n$ elements are divided into groups of $r$ elements. The median of each group is found, and the median of these group medians is used as the selection pivot.For ...
GO Classes
178
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
+
–
4
4 votes
1
1 answer
127
127 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
127
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
+
–
1
1 vote
1
1 answer
149
149 views
GO Classes DPP | GATE CS, DA | Algorithms | Merge Comparison
Two sorted subarrays, each containing $n/2$ elements, are merged into one sorted array of length $n$.What is the possible range for the number of key comparisons made dur...
GO Classes
149
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
merge-sort
+
–
3
3 votes
1
1 answer
255
255 views
GO Classes DPP | GATE CS, DA | Algorithms | Merge Sort
Assume that a merge sort algorithm in the worst case takes $30$ seconds for an input of size $64$. Which of the following most closely approximates the maximum input size...
GO Classes
255
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-241
goclasses-cs-dpp
goclasses-cs-dpp-day-339
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
merge-sort
+
–
4
4 votes
1
1 answer
183
183 views
GO Classes DPP | GATE CS, DA | Algorithms | Divide and Conquer
There are $n$ cities, and exactly $k$ of them are contaminated. A test on any subset tells whether at least one contaminated city is present in that subset.A divide-and-c...
GO Classes
183
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-241
goclasses-cs-dpp
goclasses-cs-dpp-day-339
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
+
–
1
1 vote
1
1 answer
188
188 views
GO Classes DPP | GATE CS, DA | Algorithms | Merge Operation
Initially, there are three sorted sequences:$(3,5), (7,9), (6)$They are merged by choosing sorted sequences from left to right using two-way merging.How many total key co...
GO Classes
188
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-241
goclasses-cs-dpp
goclasses-cs-dpp-day-339
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
merge-sort
+
–
2
2 votes
1
1 answer
210
210 views
GO Classes DPP | GATE CS, DA | Algorithms | Binary Search
A sorted table contains $2000$ distinct elements in increasing order. A key is searched using binary search, and it is guaranteed that the key exists in the table.What is...
GO Classes
210
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-241
goclasses-cs-dpp
goclasses-cs-dpp-day-339
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
binary-search
numerical-answers
+
–
2
2 votes
1
1 answer
172
172 views
GO Classes DPP | GATE CS, DA | Algorithms | Four-Way Merge Sort
Suppose instead of dividing the input into two parts, a modified merge sort divides the input into four equal parts, sorts each one-fourth recursively, and finally combin...
GO Classes
172
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-241
goclasses-cs-dpp
goclasses-cs-dpp-day-339
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
merge-sort
+
–
3
3 votes
1
1 answer
188
188 views
GO Classes DPP | GATE CS, DA | Algorithms | Merge Sort
Merge sort divides an array of size $n$ into two halves, recursively sorts both halves, and then merges the two sorted halves.Which recurrence correctly represents merge ...
GO Classes
188
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-240
goclasses-cs-dpp
goclasses-cs-dpp-day-338
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
merge-sort
+
–
4
4 votes
1
1 answer
182
182 views
GO Classes DPP | GATE CS, DA | Algorithms | Divide & Conquer
Karatsuba multiplication multiplies two $n$-digit numbers by reducing the number of recursive half-size multiplications.Which recurrence represents Karatsuba multiplicati...
GO Classes
182
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-240
goclasses-cs-dpp
goclasses-cs-dpp-day-338
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
+
–
3
3 votes
1
1 answer
155
155 views
GO Classes DPP | GATE CS, DA | Algorithms | Local Minimum
An array has distinct elements. A local minimum is an element smaller than both of its neighbors, with endpoints compared to their only neighbor.A divide-and-conquer algo...
GO Classes
155
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-240
goclasses-cs-dpp
goclasses-cs-dpp-day-338
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
+
–
2
2 votes
1
1 answer
162
162 views
GO Classes DPP | GATE CS, DA | Algorithms | Max Sum Subarray
In the divide-and-conquer algorithm for maximum sum subarray, the maximum subarray may lie:entirely in the left half entirely in the right halfWhat is the third possible ...
GO Classes
162
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-240
goclasses-cs-dpp
goclasses-cs-dpp-day-338
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
+
–
3
3 votes
1
1 answer
186
186 views
GO Classes DPP | GATE CS, DA | Algorithms | Divide & Conquer
Suppose array $A[1 \ldots n]$ is sorted in non-decreasing order and it is guaranteed that there exists an index $i$ such that:$A[i] = i$A divide-and-conquer algorithm che...
GO Classes
186
views
asked
Aug 4
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-240
goclasses-cs-dpp
goclasses-cs-dpp-day-338
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
divide-and-conquer
+
–
0
0 votes
1
1 answer
172
172 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
172
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
+
–
2
2 votes
1
1 answer
376
376 views
UGC NET CSE | January 2025 | Part 2 | Question: 56
Which of the following is not a divide and conquer methodBinary SearchMerge SortQuick SortHeap Sort
Shubham Sharma 2
376
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-jan2025
algorithm-design
sorting
divide-and-conquer
+
–
1
1 vote
1
answers
1 answer
1.1k
1.1k views
Divide and conquer
In quick sort, n numbers the (n/10)th element is selected as pivot using n^2 sortimng time complexity what will be the time complexity of quick sort is.....a)O(nlogn)b)O(...
Emankashyap
1.1k
views
asked
Apr 30, 2024
Algorithms
divide-and-conquer
algorithms
time-complexity
recurrence-relation
sorting
+
–
0
0 votes
0
0 answers
436
436 views
Made Easy Workbook
Q. 8 For insertion sort on 3 elements consider the following decision treeEach internal node is labelled by indices of array elements from their original positions. Each ...
Huzaifa0111
436
views
asked
Aug 27, 2023
Algorithms
divide-and-conquer
algorithms
made-easy-booklet
+
–
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
+
–
0
0 votes
1
answers
1 answer
1.1k
1.1k views
Consider a divide and conquer algorithm that divides an input of size n into a subproblems, each of size n/b, and the cost of dividing and merging the problems is given by f(n) = Θ(n^c). The Master Theorem classifies this into different cases based on the value of c in relation to log_b(a). Could you explain the intuition and reasoning behind these classifications?
Consider a divide and conquer algorithm that divides an input of size n into a subproblems, each of size n/b, and the cost of dividing and merging the problems is given b...
dhruba
1.1k
views
asked
May 29, 2023
Algorithms
algorithms
time-complexity
divide-and-conquer
+
–
1
1 vote
1
1 answer
821
821 views
Divide and conquer
How To Solve This Using Divide And ConquerSuppose we are given the two n bit integers, assuming for common sense n as power of 2. It is required to multiply them using Di...
[ Jiren ]
821
views
asked
Aug 28, 2022
Algorithms
algorithms
divide-and-conquer
recurrence-relation
+
–
Page:
1
2
3
4
next »