Graph Theory37 sections · 1633 units
Open in CourseQuiz: Adjacency Matrix vs List
Knowledge check
Check Your Understanding
You have a graph with vertices and edges. Which representation uses less memory, and why?
- A.Adjacency matrix, because it avoids pointer overhead
- B.Adjacency matrix, because it stores each edge once
- C.Adjacency list, because it only stores entries
- D.Adjacency list, because it stores instead of