If G = (V,E) is a directed graph, then length of adjacency list is ______ and it requires ______ amount of memory.
-
1
2|E|, θ(V)
-
2
|E|, θ(V+E)
Correct Answer
-
3
|E|, θ(E)
-
4
2|E|, θ(V+E)
-
Shouldnt the ans be 2|E| for the length of the adjacency list as every edge would be stored twice?