Graph Theory37 sections · 1633 units
Open in Course

Quiz: Algorithm Selection

Knowledge check

Check Your Understanding

You have a graph with 10,00010{,}000 nodes, 50,00050{,}000 edges, and all edge weights are non-negative. Which approach is fastest for single-source shortest paths?

  1. A.Bellman-Ford, because it handles all edge types
  2. B.SPFA, because it is always faster than Bellman-Ford
  3. C.Dijkstra with a min-heap, because all weights are non-negative
  4. D.Floyd-Warshall, because the graph is dense enough
Start the roadmap to answer the quizzes and solve the challenges