1
GATE CSE 1997
MCQ (Single Correct Answer)
+1
-0.3
The concatenation of two lists is to be performed on 0(1) time. Which of the following implementations of a list should be used?
A
Singly linked list
B
Doubly linked list
C
Circular doubly linked list
D
Array implementation of list
2
GATE CSE 1997
MCQ (Single Correct Answer)
+1
-0.3
The correct matching for the following pairs is
A. All pairs shortest path 1. Greedy
B. Quick Sort 2. Depth-First Search
C. Minimum weight spanning tree 3. Dynamic Programming
D. Connected Components 4. Divide and Conquer
A
$$\text{A-2 B-4 C-1 D-3}$$
B
$$\text{A-3 B-4 C-1 D-2}$$
C
$$\text{A-3 B-4 C-2 D-1}$$
D
$$\text{A-4 B-1 C-2 D-3}$$
3
GATE CSE 1997
MCQ (Single Correct Answer)
+2
-0.6
Let T(n) be the function defined by $$T(1) =1, \: T(n) = 2T (\lfloor \frac{n}{2} \rfloor ) + \sqrt{n}$$
Which of the following statements is true?
A
$$T(n) = O \sqrt{n}$$
B
$$T(n)=O(n)$$
C
$$T(n) = O (\log n)$$
D
$$T(n) = O (\log n)$$
4
GATE CSE 1997
MCQ (Single Correct Answer)
+1
-0.3

In the following grammar:

$$\eqalign{ & X:: = X \oplus {Y \over Y} \cr & Y:: = Z*{Y \over Z} \cr & Z:: = id \cr} $$

Which of the following is true?

A
$$' \oplus '$$ is left associative while $$'*'$$ is right associative
B
Both $$' \oplus '$$and $$'*'$$ is left associative
C
$$' \oplus '$$ is right associative while $$'*'$$ is left associative
D
None of the above
EXAM MAP
Medical
NEETAIIMS
Graduate Aptitude Test in Engineering
GATE CSEGATE ECEGATE EEGATE MEGATE CEGATE PIGATE IN
Civil Services
UPSC Civil Service
Defence
NDA
Staff Selection Commission
SSC CGL Tier I
CBSE
Class 12