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 could represent real-world scenarios like distance or price.
Can you explain what Dijkstra's algorithm does?
Consider how you’d navigate from one point to many others while minimizing cost.
What does a weighted graph have that an unweighted graph doesn't?
Think about how costs represent additional information.
True or False: Dijkstra's algorithm can be used for graphs with negative edge weights.
Recall the properties required for Dijkstra's to work effectively.
Create a weighted graph based on a map of your city. Label the edge weights based on travel time. After that, calculate the shortest path using Dijkstra's algorithm and provide your results.
Pay close attention to the edge weights during calculations to ensure accuracy.
Given a matrix representation of a weighted graph with several vertices, identify negative cycles and discuss the suitability of Dijkstra’s algorithm for this scenario.
Review properties of negative cycles and their implications on graphs.
4 more questions in this section. Enroll free to practise them all.
Enroll free