16. Consider a directed graph that has n nodes and e edges, where a. What is the time complexity, using Big Oh notation, for each of the following operations when an adjacency matrix is used to...


16. Consider a directed graph that has n nodes and e edges, where



a. What is the time complexity, using Big Oh notation, for each of the following operations when an adjacency matrix is used to represent the graph?



Testing whether two vertices are joined by an edge


Finding the successors of a given vertex


Finding the predecessors of a given vertex



b. Repeat Part a, but assume that the graph uses an adjacency list in its implementation instead of an adjacency matrix.



Dec 01, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here