| CSC 207 | Grinnell College | Fall, 2018 |
| Algorithms and Object-Oriented Design | ||
Walker, pp. 486-489, problems 3a, 4, 7, 8, 22, 23, 26a,b
Walker, pp. 486-487, problems 9, 10, 18a,b, 19a,b
Suppose a connected graph has v vertices and e edges. What is the complexity of a breadth-first search?
Assume the queue is implemented with an array, and the graph by an adjacency matrix.
Assume the queue is implemented with a linked list, and the graph with adjacency lists.