In the adjacency-list representation of a directed graph (with
E edges and V vertices),
what is the big-Oh complexity
of how long does it take to
compute the out-degree of every vertex (combined time)? How long does it take to
compute the in-degree of every vertex (combined time)? Give your answers
using
notation like
O(VE) or
O(V) in terms of both V and E. Briefly justify
your answers.
name: __________________________ login: _____________
name: __________________________ login: _____________
name: __________________________ login: _____________