The memory use of an adjacency matrix is
Answers
Answered by
5
Answer:
For any directed graph, an adjacency matrix (at 1 bit per edge) consumes n^2 * (1) bits of memory. ... For an adjacency list, you can use the follow formula to determine the maximum number of edges ( e ) before an adjacency matrix is optimal for memory.
Answered by
2
For any directed graph, an adjacency matrix (at 1 bit per edge) consumes n^2 * (1) bits of memory. ... For an adjacency list, you can use the follow formula to determine the maximum number of edges ( e ) before an adjacency matrix is optimal for memory.
Similar questions