PYQ Vault
PYQs
Notes
Most Asked
Mocks
Board
Store
Visuals
Play
PYQs
Most Asked
Notes
Mocks
Board
2 questions
Filters
3
Download
· 2
Filtering by:
GATE CS
Algorithms
Divide and Conquer (2)
Clear all
Copy link
GATE CS · 2025 · Set 2 · IIT Roorkee · Q41
Add
#1
·
Moderate
·
Binary search
An array
A
A
A
of length
n
n
n
with distinct elements is said to be bitonic if there is an index
1
≤
i
≤
n
1 \leq i \leq n
1
≤
i
≤
n
such that
A
[
1..
i
]
A[1..i]
A
[
1..
i
]
is sorted in the non-decreasing order and
A
[
i
+
1..
n
]
A[i+1..n]
A
[
i
+
1..
n
]
is sorted in the non-increasing order. Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array
A
A
A
?
A
Θ
(
n
)
\Theta(n)
Θ
(
n
)
B
Θ
(
1
)
\Theta(1)
Θ
(
1
)
C
Θ
(
log
2
n
)
\Theta(\log^{2} n)
Θ
(
lo
g
2
n
)
D
Θ
(
log
n
)
\Theta(\log n)
Θ
(
lo
g
n
)
Show solution
Report
GATE CS · 2026 · Set 2 · IIT Guwahati · Q32
Add
#2
·
Easy
·
Merge sort
Consider an array
A
=
[
10
,
7
,
8
,
19
,
41
,
35
,
25
,
31
]
A = [10, 7, 8, 19, 41, 35, 25, 31]
A
=
[
10
,
7
,
8
,
19
,
41
,
35
,
25
,
31
]
.
Suppose the merge sort algorithm is executed on array
A
A
A
to sort it in increasing order. The merge sort algorithm will carry out a total of 7 merge operations. A merge operation on sorted left array
L
L
L
and sorted right array
R
R
R
is said to be void if the output of the merge operation is the elements of array
L
L
L
followed by the elements of array
R
R
R
.
The number of void merge operations among these 7 merge operations is __________. (answer in integer)
Show answer
Report
AFCAT
SSC CGL
SSC CGL Tier II
SPI
Homi Bhabha Class 9
MH Scholarship Class 4
MH Scholarship Class 7
About
How it works
Get the app
Blog
About
Send feedback
Email us
Terms
Refunds
Privacy
Contact
PYQ Vault
PYQs
Notes
Most Asked
Mocks
Board
Store
Visuals
Play
PYQs
Most Asked
Notes
Mocks
Board