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 what costs might represent in an application.
What does edge cost represent?
Consider what expense could be related to transport.
What does a weighted graph include?
Think about graphs used in transportation.
True or False: A shortest path always has the fewest edges.
Reflect on the burning analogy.
Consider a graph with vertices A, B, C, and D connected by edges with the following weights: A-B: 4, A-C: 2, C-B: 5, B-D: 1. Calculate the shortest path from A to D using Dijkstra's algorithm.
Keep track of the lowest costs as you move through unvisited vertices.
You have a weighted graph where some edges are negative. What will happen when applying Dijkstra's Algorithm, and what alternative would you consider?
Review the properties of the algorithms for different contexts.
4 more questions in this section. Enroll free to practise them all.
Enroll free