Consider a complete undirected graph with vertex set . Entry in the matrix below is the weight of the edge
What is the minimum possible weight of a path from vertex to vertex in this graph such that contains at most edges?
View worked solution
Answer: B
We need to find the minimum weight of a path from vertex to vertex containing at most edges. The vertices are indexed as .
Let's evaluate the possible paths from vertex to vertex based on the number of edges:
- 1-edge path:
- : weight
- 2-edge paths:
- : weight
- : weight
- : weight
- 3-edge paths:
- : weight
- : weight
- : weight
The minimum weight among all paths with at most edges is , achieved by the path .
Free practice · Your answers on this page are not saved.
