Exam 16: Graphs

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A complete graph on n vertices has n(n-1)/2 edges.

Free
(True/False)
4.9/5
(42)
Correct Answer:
Verified

True

Consider the following undirected graph. vertices: 1, 2, 3, 4, 5 edges: (1,2),(3,4), (2,4), (2, 3), (3,5), (4,5) Write out an adjacency matrix for this graph.

Free
(Essay)
4.8/5
(49)
Correct Answer:
Verified

A cycle is a path that starts and ends on the same vertex.

Free
(True/False)
4.7/5
(35)
Correct Answer:
Verified

False

What is the difference between a spanning tree and a minimum spanning tree?

(Essay)
4.9/5
(37)

An adjacency matrix is one approach to implementing a graph that uses a two-dimensional array.

(True/False)
4.9/5
(42)

Consider a digraph with the following vertices and edges: vertices: 1, 2, 3, 4 Edges: (1,2), (2,1), (3,4) Which of the following statements are true?

(Multiple Choice)
4.9/5
(37)

Can an edge be part of more than one cycle in a graph? Explain.

(Essay)
4.8/5
(40)

Can a tree ever have a cycle? Explain.

(Essay)
4.9/5
(39)

A digraph and an directed graph are the same thing.

(True/False)
4.9/5
(32)

A breadth-first traversal of a graph uses which of the following data structures?

(Multiple Choice)
4.8/5
(37)

A breadth-first traversal uses a stack as a supporting data structure.

(True/False)
4.9/5
(50)

Which of the following describes vertices that are adjacent?

(Multiple Choice)
4.7/5
(45)

A connected graph has which of the following properties?

(Multiple Choice)
4.8/5
(32)

What data structure is used to support a depth-first traversal of a graph?

(Short Answer)
4.9/5
(47)

Is every tree a graph? Is every graph a tree? Explain.

(Essay)
4.9/5
(42)

A __________________ traversal can be used to determine if a graph is connected.

(Multiple Choice)
5.0/5
(31)

A(n) ___________________ is a two-dimensional array that can be used to represent a graph.

(Multiple Choice)
4.8/5
(40)

Explain how a breadth-first traversal of a graph works.

(Essay)
4.9/5
(45)

Consider the following undirected graph. vertices: 1, 2, 3, 4, 5 edges: (1,2),(3,4), (2,4), (2, 3), (3,5), (4,5) Give a spanning tree for this graph.

(Short Answer)
4.8/5
(37)

A spanning tree of a graph does not necessarily include all of the edges of the graph.

(True/False)
4.9/5
(36)
Showing 1 - 20 of 40
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)