Shortest Paths questions

Q55

GATE CS 2021 CS-2Graph AlgorithmsNAT2 marks
In a directed acyclic graph with a source vertex ss, the quality-score of a directed path is defined to be the product of the weights of the edges on the path. Further, for a vertex vv other than ss, the quality-score of vv is defined to be the maximum among the quality-scores of all the paths from ss to vv. The quality-score of ss is assumed to be 1.

The sum of the quality-scores of all the vertices in the graph shown above is ____________.
Question figure
Show answer without attempting

Answer: 929

0/10 correct0 marks

Related topics in Graph Algorithms