Shortest Paths questions

Q38

GATE CS 2016 CS-1Graph AlgorithmsNAT2 marks
Consider the weighted undirected graph with 4 vertices, where the weight of edge {i, j} is given by the entry WijW_{ij} in the matrix WW.

W=[02852058850x58x0]W = \begin{bmatrix} 0 & 2 & 8 & 5 \\ 2 & 0 & 5 & 8 \\ 8 & 5 & 0 & x \\ 5 & 8 & x & 0 \end{bmatrix}

The largest possible integer value of x, for which at least one shortest path between some pair of vertices will contain the edge with weight x is ________.
Show answer without attempting

Answer: 12.0

Q14

GATE CS 2016 CS-2Graph AlgorithmsMCQ1 mark−1/3 if wrong
The Floyd-Warshall algorithm for all-pair shortest paths computation is based on
Show answer without attempting

Answer: C

0/20 correct0 marks

Related topics in Graph Algorithms