Q29
Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph G is/are TRUE?
More than one option can be correct.
Show answer without attempting
Answer: B, C, D
GATE CS · 127 questions
127 Algorithms questions from GATE CS papers, each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: B, C, D
Answer: C
Answer: D

Answer: 6
Answer: A
Answer: A
Answer: C
Answer: 60

Answer: 9
Answer: C
Answer: A, C
Function_1 and Function_2 expressed in pseudocode as follows:Function_1
while n > 1 do
for i = 1 to n do
x = x + 1;
end for
n = ⌊n/2⌋;
end while
Function_2
for i = 1 to 100 * n do
x = x + 1;
end forFunction_1 and Function_2, respectively.Answer: A, D
Answer: 5040
Answer: A
Answer: B
Answer: A, B, C
Answer: C
Answer: D
| 23 | 32 | 45 | 69 | 72 | 73 | 89 | 97 |
|---|
Answer: C

Answer: 3
0/200 correct0 marks