Graph Theory37 sections · 1633 units
Open in Course

Quiz: Dijkstra on Grids

Knowledge check

Check Your Understanding

In the Minimum Effort problem, the "edge weight" between 22 adjacent cells is the absolute difference in heights. You want to minimize the maximum edge weight along a path. What is the time complexity of Dijkstra on an n×mn \times m grid?

  1. A.O(nm)O(nm)
  2. B.O(n2m2)O(n^2 m^2)
  3. C.O(nmlog(nm))O(nm \log(nm))
  4. D.O(nm(n+m))O(nm \cdot (n + m))
Start the roadmap to answer the quizzes and solve the challenges