Graph Algorithms questions

Q14

GATE CS 2014 CS-2Graph AlgorithmsMCQ1 mark−1/3 if wrong
Consider the tree arcs of a BFS traversal from a source node W in an unweighted, connected, undirected graph. The tree T formed by the tree arcs is a data structure for computing
Show answer without attempting

Answer: B

Q13

GATE CS 2014 CS-3Graph AlgorithmsNAT1 mark
Suppose depth first search is executed on the graph below starting at some unknown vertex. Assume that a recursive call to visit a vertex is made only after first checking that the vertex has not been visited earlier. Then the maximum possible recursion depth (including the initial call) is _________.
Question figure
Show answer without attempting

Answer: 19

Q38

GATE CS 2014 CS-3Graph AlgorithmsMCQ2 marks−2/3 if wrong
Consider the decision problem 2CNFSAT defined as follows:

{Φ∣Φ is a satisfiable propositional formula in CNF with at most two literals per clause}\{\Phi \mid \Phi \text{ is a satisfiable propositional formula in CNF with at most two literals per clause}\}

For example, Φ=(x1∨x2)∧(x1∨x3‾)∧(x2∨x4)\Phi = (x_1 \lor x_2) \land (x_1 \lor \overline{x_3}) \land (x_2 \lor x_4) is a Boolean formula and it is in 2CNFSAT.

The decision problem 2CNFSAT is
Show answer without attempting

Answer: B

Q3

GATE CS 2014 CS-1Graph AlgorithmsMCQ1 mark−1/3 if wrong
Let G=(V,E)G=(V,E) be a directed graph where VV is the set of vertices and EE the set of edges. Then which one of the following graphs has the same strongly connected components as GG ?
Show answer without attempting

Answer: B

Q11

GATE CS 2014 CS-1Graph AlgorithmsMCQ1 mark−1/3 if wrong
Let GG be a graph with nn vertices and mm edges. What is the tightest upper bound on the running time of Depth First Search on GG, when GG is represented as an adjacency matrix?
Show answer without attempting

Answer: C

0/60 correct0 marks

Related topics in Algorithms