Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. Consider the weighted undirected graph with 4 vertices, where the weight of edge {i, j} is given by the entry Wi j in the matrix W.

    The largest possible integer value of x, for which at least one shortest path between some pair of vertices will contain the edge with weight x is ________.
    1. 24
    2. 14
    3. 12
    4. None of the above
Correct Option: C


The shortest path (excluding x) from 2 to 3 is of weight 12 (2–1–0–3).



Your comments will be displayed only after manual approval.