What does the construction of G' by adding s to G with O-weighted outgoing edges to all other vertices in G accomplish i
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What does the construction of G' by adding s to G with O-weighted outgoing edges to all other vertices in G accomplish i
What does the construction of G' by adding s to G with O-weighted outgoing edges to all other vertices in G accomplish in Johnson's algorithm? Check all that result directly from the addition of s and the edges. (Pick carefully, you will get negative points for choosing the wrong answers.) ООООО A. Makes the weights of the graph non-negative so Dijkstra's algorithm applies. B. Computes all pairs shortest paths. C. Ensures that all vertices can be reached by Bellman-Ford to compute h. D. Detects negative weight cycles so that graphs containing them can be rejected. E. Preserves shortest paths: the shortest paths between vertices in G and between these vertices in Gʻare identical.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!