Graph Algorithms questions — page 3 of 3

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

Q19

GATE CS 2013 CSGraph AlgorithmsMCQ1 mark−1/3 if wrong
What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of nn vertices?
Show answer without attempting

Answer: C

Q29

GATE CS 2012 CSGraph AlgorithmsMCQ2 marks−2/3 if wrong
Let GG be a weighted graph with edge weights greater than one and G′G' be the graph constructed by squaring the weights of edges in GG. Let TT and T′T' be the minimum spanning trees of GG and G′G', respectively, with total weights tt and t′t'. Which of the following statements is TRUE?
Show answer without attempting

Answer: Marks to all

Q40

GATE CS 2012 CSGraph AlgorithmsMCQ2 marks−2/3 if wrong
Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices S and T. Which one will be reported by Dijkstra's shortest path algorithm? Assume that, in any iteration, the shortest path to a vertex vv is updated only when a strictly shorter path to vv is discovered.
Question figure
Show answer without attempting

Answer: D

0/80 correct0 marks

Related topics in Algorithms