Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the first step in Dijkstra's algorithm?
Think about how we initialize the distances.
What data structure is inefficient for Dijkstra's algorithm?
Consider how we store graph data and access the vertices.
What is the correct time complexity of Dijkstra's algorithm using an adjacency matrix?
Think about the loops involved in finding the minimum distance.
True or False: Dijkstra's algorithm can correctly determine shortest paths in a graph with negative weight edges.
Recall the assumptions made by Dijkstra's algorithm.
Given a graph with the following weights, perform Dijkstra's algorithm from vertex A. Show all steps and final shortest paths.
Keep track of distances from A, marking each burnt vertex.
Explain how Dijkstra's algorithm would perform on a complete graph with negative edge weights, detailing any deviations from the expected outcome.
Consider the implications of a negative cycle.
6 more questions in this section. Enroll free to practise them all.
Enroll free