Graph Algorithm 19

0. Let G = (V, E) be an undirected graph with a subgraph G1 = (V1, E1). Weights are assigned to edges of G as follows:

A single-source shortest path algorithm is executed on the weighted graph (V, E, w) with an arbitrary vertex v1 of V1 as the source. Which of the following can always be inferred from the path costs computed?

  • Option : B
  • Explanation :
    Suppose G = (v, E) and G1 = (v, E1) such that E1 ≤ E and v1 ≤ v
    Consider an example

    Consider the w(e) = 1 of e ∉ E1 it means the cost of v1 to v4 is only 1 other edges having cost 0. It is noted that G1 is connected (As shown in example).
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *