Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged goclasses-da-dpp
1
1 vote
1
1 answer
94
94 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
94
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
106
106 views
GO Classes DPP | GATE CS, DA | Algorithms | Heap
Consider the following max-heap in level-order:$[80,75,70,10,55,65,40,5,0,20,30,60,50]$Suppose the next operation is Delete-Max.Which of the following pairs of keys will ...
GO Classes
106
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
max-heap
multiple-selects
+
–
1
1 vote
1
1 answer
134
134 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
134
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
118
118 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
118
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
108
108 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
108
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
+
–
1
1 vote
1
1 answer
122
122 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
122
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
114
114 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
114
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
141
141 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
141
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
+
–
0
0 votes
1
1 answer
102
102 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
102
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
+
–
0
0 votes
1
1 answer
102
102 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
102
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
89
89 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
89
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
83
83 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
83
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
114
114 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Analysis
Consider the following functions$f(n)=3n^{\sqrt{n}}$$g(n)=2^{\sqrt{n}\log_2 n}$$h(n)=n!$Which of the following is true?$h(n)$ is $O(f(n))$ $h(n)$ is $O(g(n))$ $g(n)\neq O...
GO Classes
114
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
asymptotic-notations
+
–
0
0 votes
1
1 answer
85
85 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
85
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
+
–
5
5 votes
1
1 answer
311
311 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
311
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
165
165 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
165
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
157
157 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
157
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
133
133 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
133
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
122
122 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
122
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
157
157 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
157
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
160
160 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
160
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
+
–
1
1 vote
1
1 answer
116
116 views
GO Classes DPP | GATE CS, DA | Algorithms | Implementation Choices
Which of the following are important design choices rather than arbitrary choices?In binary search, compute the middle index using $\texttt{(lo + hi) >> 1}$ instead of $\...
GO Classes
116
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
multiple-selects
+
–
4
4 votes
1
1 answer
106
106 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
106
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
127
127 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
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
merge-sort
+
–
3
3 votes
1
1 answer
232
232 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
232
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
163
163 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
163
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
170
170 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
170
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
189
189 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
189
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
155
155 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
155
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
169
169 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
169
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
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
46
next »