GATE CS 2021, set 2 · Question 65 · Algorithms · Numerical answer (NAT) · 2 marks · no negative marks

In a directed acyclic graph with a source vertex s, 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 v other than s, the quality-score of v is defined to be the maximum among the quality-scores of all the paths from s to v. The quality-score of s is assumed to be 1.
The sum of the quality-scores of all the vertices in the graph shown above is ______.

A directed weighted graph with 9 vertices laid out in a 3x3 grid. Top row from left to right: f, g, t. Middle row: c, d, e. Bottom row: s, a, b. Horizontal edges, all pointing right: f→g weight 1, g→t weight 1, c→d weight 1, d→e weight 9, s→a weight 9, a→b weight 1. Vertical edges, all pointing upward: s→c weight 1, c→f weight 9, a→d weight 1, d→g weight 9, b→e weight 1, e→t weight 9.
Answer

Answer 929

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes