Question: Consider a directed graph G with distinct and nonnegative edge lengths. Lets be a starting vertex and t a destination vertex, and assume that G
Lets be a starting vertex and t a destination vertex, and assume that G has at least one st path. Which of the following statements are true? (Choose all that apply.)
- The shortest (meaning minimum-length) s-t path might have as many as n - 1 edges, where n is the number of vertices.
- There is a shortest s-t path with no repeated vertices (that is, with no loops).
- The shortest s-t path must include the minimum-length edge of G.
- The shortest s-t path must exclude the maximum-length edge of G.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
