1. >Algorithms
Found 2  QuestionsSET DEFAULT
Selected Filters
    Algorithms Shortest paths
Exams
Subjects
Topics

List of top Algorithms Questions on Shortest paths

Let \( G \) be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant \( \alpha \) is added to the weight of every edge. Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in \( G \) before and after the edge weight update?
  • GATE CS - 2025
  • GATE CS
  • Algorithms
  • Shortest paths

In a directed acyclic graph with source vertex \( s \), the quality-score of a directed path is the product of the weights of the edges on the path. 
For a vertex \( v \neq s \), the quality-score of \( v \) is the maximum among the quality-scores of all 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 is \(\underline{\hspace{2cm}}\). 

  • GATE CS - 2021
  • GATE CS
  • Algorithms
  • Shortest paths