MCQ1 mark
Consider the following functions, where is a positive integer.
Which one of the following options lists the functions in increasing order of asymptotic growth rate?
*Note*: Assume the base of log to be 2.
Single correct
GATE CSE previous year questions · Algorithms
Single correct
One or more correct
Numerical answer
Single correct
Single correct
Algorithm B1: For i = 1, 2, ..., n
For j = 1, 2, ..., n
T[i][j] = 2T[i-1][j] + 3T[i][j-1]
Algorithm B2: For s = 2, 3, ..., 2n
For i = 1, 2, ..., n
For j = 1, 2, ..., n
If (i + j == s)
T[i][j] = 2T[i-1][j] + 3T[i][j-1]
Algorithm , is said to be correct if and only if it calculates the correct values of , for all , (as per the recursive formulation) at the end of the execution of the algorithm .
Which one of the following statements is true?Single correct
Single correct
One or more correct
Single correct
Single correct
someAlgo(G)
1. Let v be any vertex in G. Run BFS on G starting at v.
Let u be a vertex in G at maximum distance from v as given by the BFS.
2. Run BFS on G again with u as the starting vertex.
Let z be the vertex at maximum distance from u as given by the BFS.
3. Output the distance between u and z in G.
The output of someAlgo() for the tree shown in the given figure is ___________. (Answer in integer)
Numerical answer
Single correct
Numerical answer
One or more correct

Numerical answer
Single correct
Answer key coming soon
Single correct
Answer key coming soon
Single correct
Answer key coming soon
Single correct
Answer key coming soon

One or more correct
Answer key coming soon