previous
|
index
Adjacency Matrices: Pro and Con
Pro:
Determining if
(u,v) ∈ E
takes
O(1)
(constant) time.
Con:
Memory required is
O(|V|
2
)
, although bits can be used instead of words.
previous
|
index