Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a weighted graph?
Think about how costs can affect paths.
What does Dijkstra's Algorithm find?
It’s named after the person who proposed it.
What is the purpose of a weight function in a weighted graph?
Focus on what makes weighted graphs distinct from unweighted graphs.
Dijkstra's Algorithm can only be used with which type of weights?
Consider what happens if a path can decrease in cost.
Given a weighted graph with vertices A, B, C, and D, create an edge weight table and utilize Dijkstra's algorithm to find the shortest path from A to all other vertices. What paths will you end up with?
Start with distances set to infinity, except for the starting vertex.
In a scenario where some edge weights can change dynamically, discuss how you might adapt Dijkstra's algorithm for efficient re-computation. What strategies would you use?
What would be the trade-off between recalculating paths versus maintaining existing paths?
5 more questions in this section. Enroll free to practise them all.
Enroll free