1
GATE CSE 2019
Numerical
+1
-0.33
An array of 25 distinct elements is to be sorted using quicksort. Assume that the pivot element is chosen uniformly at random. The probability that the pivot element gets placed in the worst possible location in the first round of partitioning (rounded off to 2 decimal places) is ______.
Your input ____
2
GATE CSE 2019
MCQ (Single Correct Answer)
+2
-0.67
Consider the following statements:

I. The smallest element in a max-heap is always at a leaf node
II. The second largest element in a max-heap is always a child of the root node
III. A max-heap can be constructed from a binary search tree in Θ(n) time
IV. A binary search tree can be constructed from a max-heap in Θ(n) time

Which of the above statements are TRUE?
A
I, II and III
B
I, III and IV
C
I, II and IV
D
II, III and IV
3
GATE CSE 2019
MCQ (Single Correct Answer)
+2
-0.67
There are n unsorted arrays: A1, A2, ..., An. Assume that n is odd. Each of A1, A2, ..., An contains n distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of A1, A2, ..., An is
A
$$O\left( n \right)$$
B
$$O\left( {n\log n} \right)$$
C
$$O\left( {{n^2}\log n} \right)$$
D
$$O\left( {{n^2}} \right)$$
4
GATE CSE 2019
Numerical
+1
-0.33
Consider the grammar given below:

S → Aa

A → BD

B → b | ε

D → d | ε

Let a, b, d, and $ be indexed as follows: GATE CSE 2019 Compiler Design - Parsing Question 8 English
Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the FOLLOW set in the descending order. (For example, if the FOLLOW set is {a, b, d, $}, then the answer should be 3210)
Your input ____
EXAM MAP
Medical
NEET
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
CBSE
Class 12