Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is an adjacency list?
Think about how you can list the neighbors of a vertex.
What does a minimum spanning tree do?
Consider why this would be useful in networking.
What is the time complexity of Dijkstra's algorithm using a priority queue?
Remember that E is for edges and V is for vertices.
Kruskal’s algorithm can work with graphs that have negative weight edges.
Consider how the algorithm functions.
Given a graph with 6 vertices and 7 weighted edges, implement Dijkstra’s algorithm in code, and analyze the results.
Look carefully at how edges are added and distances updated.
Design a randomized graph with varying edge weights and demonstrate the behavior of both Prim’s and Kruskal's algorithms on it. Compare their output.
Reflect on the edges added and cycles formed.
6 more questions in this section. Enroll free to practise them all.
Enroll free