Chapter 20 Questions
b. multigraph
c. digraph
d. connected component
17. An iterative DFS traversal algorithm uses a(n) ______.
a. list
b. array
c. queue
d. stack
18. A ______ order is a list of vertices in a directed graph without cycles such that vertex x precedes vertex y if the
graph has a directed edge from x to y.
a. graphical
b. topological
c. hierarchical
d. spatial
19. A ______ is an undirected connected graph without cycles.
a. tree
b. multigraph
c. digraph
d. connected component
20. A connected undirected graph that has n vertices must have at least ______ edges.
a. n
b. n – 1
c. n / 2
d. n * 2
21. A connected undirected graph that has n vertices and exactly n – 1 edges ______.
a. cannot contain a cycle
b. must contain at least one cycle
c. can contain at most two cycles
d. must contain at least two cycles
22. A connected undirected graph that has n vertices and more than n – 1 edges ______.
a. cannot contain a cycle
b. must contain at least one cycle
c. can contain at most two cycles
d. must contain at least two cycles
23. A tree with n nodes must contain ______ edges.
a. n
b. n – 1
c. n – 2
d. n / 2
24. The sum of the weights of the edges in a path can be called all of the following EXCEPT ______.