CSCI 3110
Algorithms and Data Structures
Syllabus
Calendar
Misc.
Graphs Exercises
< Previous
Next >
Identify as many of the
graph terms
as you can that apply to the following graph:
Discuss with your neighbor the advantages and disadvantages of storing the above graph with each of the following:
Adjacency list
Adjacency matrix
For each implementation, how could you store the vertex labels? How could you store weights?
Given the following graph, draw the resulting:
Adjacency list
Adjacency matrix
Discuss with your neighbor the advantages and disadvantages of performing the following common operations on graphs for each implementation:
Determine whether there is an edge from vertex
i
to vertex
j
Find all vertices adjacent to a given vertex
i
List the vertices in the order that the respective search will visit them (starting with vertex A):
Depth-first search
Breadth-first search
Last Modified: