Graph Algorithms questions

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/20 correct0 marks

Related topics in Algorithms