GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2021 set2

GATE 2021 set2 · CS · NAT · 2 marks · Algorithms › Graph Algorithms

GATE 2021 set2 Computer Science and Information Technology question: In a directed acyclic graph with a source vertex s, the quality-score of a directed path…

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 other than s, the quality-score of is defined to be the maximum among the quality-scores of all the paths from s to . The quality-score of s is assumed to be 1.

figure

The sum of the quality-scores of all the vertices in the graph shown above is ______.

Show answer

Official answer: 929

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion