Study

Adjacency List

Flashcards
1 / 4
data_structure graph graph_representation adjacency_structure list_based
πŸ’¬ Click on the content to Ask AI
Explore More
πŸ”₯ breadth first search β†’ Provides per-vertex neighbor lists so BFS can iterate neighbors in O(deg(v)), achieving O(V+E) traversal; using an adjacency matrix would degrade to O(V^2) scans.
πŸ”₯ minimum spanning tree β†’ Minimum spanning tree algorithms commonly use adjacency lists to iterate neighbors/edges efficiently on sparse graphs, enabling Prim’s O(E log V) with a heap and straightforward edge enumeration for Kruskal.
πŸ”₯ depth first search β†’ Depth-first search implementations typically store graphs as adjacency lists to iterate neighbors efficiently, enabling O(V+E) traversal by visiting each vertex’s list in O(degree) time.
⭐️ topological sort β†’
⚑️ dijkstra algorithm β†’
⚑️ weighted graph β†’
⚑️ graph traversal β†’
⚑️ topological sort β†’