Deck 12: Graphs

Full screen (f)
exit full mode
Question
In 1736, Euler represented the Königsberg bridge problem as a graph, marking (as recorded) the birth of graph theory.
Use Space or
up arrow
down arrow
to flip the card.
Question
A graph can be shown pictorially.
Question
An edge incident on a single vertex is called a degree.
Question
To write programs that process and manipulate graphs, the graphs must be stored in computer memory.
Question
A graph can be represented in computer memory in only one way.
Question
How a graph is represented in computer memory depends on the specific application.
Question
The labeling of the vertices of a graph depends on a specific application.
Question
A graph is empty if the number of vertices is 1.
Question
Processing a graph requires the ability to traverse the graph.
Question
Traversing a graph is different than traversing a binary tree.
Question
In the breadth first traversal of a graph, all the nodes at any level, i, are visited after visiting the nodes at level i + 1.
Question
The breadth first traversal traverses the graph from each vertex that is not visited.
Question
In breadth first traversal, starting at the first vertex, the graph is traversed as little as possible.
Question
If the graph represents a highway structure, the weight can represent the distance between two places or the travel time from one place to another.
Question
The shortest path algorithm, also called a greedy algorithm, was developed by Dijkstra.
Question
A weight free tree T is a simple graph such that if u and v are two vertices in T, there is a unique path from u to v.
Question
A tree T is called a spanning tree of graph G if T is a subgraph of G such that V(T) = V(G), that is, all the vertices of G are in T.
Question
A graph G has a spanning tree if and only if G is connected; from this it follows that to determine a spanning tree of a graph, the graph must be connected.
Question
The topological sort algorithm can be implemented either using the depth first traversal or the breadth first traversal.
Question
In the breadth first topological ordering, we first find a vertex that has a predecessor vertex and place it first in the topological ordering.
Question
The breadth first traversal algorithm is similar to traversing a binary tree level-by-level.
Question
In the breadth first traversal algorithm, the root node is visited last.
Question
____ are used to model electrical circuits, chemical compounds, highway maps, and so on.

A) Trees
B) Pictures
C) Graphs
D) Models
Question
The symbol ''____'' means ''Cartesian product.''

A) *
B) ×
C) +
D) %
Question
Let V(G) denote the set of vertices, and E(G) denote the set of edges of a graph G, then if the elements of E are ordered pairs, G is called a directed graph or ____.

A) bigraph
B) d-graph
C) dir-graph
D) digraph
Question
When drawing a graph, the vertices are drawn as ____.

A) circles
B) squares
C) triangles
D) lines
Question
When drawing a graph, a ____ inside the circle represents the vertex.

A) name
B) block
C) vision
D) label
Question
In an undirected graph, the edges are drawn using ____.

A) circles
B) lines
C) arrows
D) triangles
Question
In a directed graph, the edges are drawn using ____.

A) lines
B) circles
C) arrows
D) triangles
Question
A ____ is a path in which all the vertices, except possibly the first and last vertices, are distinct.

A) simple path
B) first path
C) complex path
D) best path
Question
A ____ in G is a simple path in which the first and last vertices are the same.

A) circle
B) loop
C) cycle
D) recursion
Question
Let G be an undirected graph. G is called ____ if there is a path from any vertex to any other vertex.

A) attached
B) converted
C) completed
D) connected
Question
Let G be an undirected graph. A maximal subset of connected vertices is called a ____ of G.

A) component
B) property
C) solution
D) technique
Question
Let G be an undirected graph. G is called ____ if any two vertices in G are connected.

A) weakly connected
B) completely connected
C) strongly connected
D) inversely connected
Question
The statement ____ declares graphIt to be an iterator.

A) linkedListIterator graphIt<int>;
B) linkedListIterator<int> graphIt;
C) linkedListIterator.int graphIt;
D) linkedListIterator<int> graphIt<int>;
Question
The breadth first traversal of a graph is similar to traversing a binary tree ____.

A) node-by-node
B) branch-by-branch
C) root-to-leaf
D) level-by-level
Question
Let G be a weighted graph, let u and v be two vertices in G, and let P be a path in G from u to v. The weight of the path P is the ____ of all the edges on the path P.

A) sum of the edges
B) product of the weights
C) sum of the weights
D) product of the edges
Question
Let G be a weighted graph, a minimum (minimal) spanning tree of G is a spanning tree with the ____.

A) maximum weight
B) minimum weight
C) maximum height
D) minimum height
Question
There are two well-known algorithms, ____ algorithm and Kruskal's algorithm, for finding a minimum spanning tree of a graph.

A) Prim's
B) Newton's
C) Euler's
D) Orwell's
Question
Let G be a directed graph and V(G) = {v1, v2, . . ., vn}, where n >= 0. A(n) ____ of V(G) is a linear ordering vi1, vi2, . . ., vin of the vertices such that, if vij is a predecessor of vik, j does not equal k, 1 <= j <= n, 1 <= k <= n, then vij precedes vik, that is, j < k in this linear ordering.

A) ontological ordering
B) orthogonal ordering
C) topological ordering
D) typographical ordering
Question
A ____ is a path of nonzero length from a vertex u to u with no repeated edges.

A) cycle
B) unit of work
C) circuit
D) transit
Question
A circuit in a graph that includes all the edges of the graph is called a(n) ____.

A) Euler circuit
B) Newton circuit
C) Einstein circuit
D) Prim circuit
Question
A graph G is said to be ____ if either G is a trivial graph or G has an Euler circuit.

A) Newtonian
B) Orwellian
C) Euclidian
D) Eulerian
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/43
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Graphs
1
In 1736, Euler represented the Königsberg bridge problem as a graph, marking (as recorded) the birth of graph theory.
True
2
A graph can be shown pictorially.
True
3
An edge incident on a single vertex is called a degree.
False
4
To write programs that process and manipulate graphs, the graphs must be stored in computer memory.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
5
A graph can be represented in computer memory in only one way.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
6
How a graph is represented in computer memory depends on the specific application.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
7
The labeling of the vertices of a graph depends on a specific application.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
8
A graph is empty if the number of vertices is 1.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
9
Processing a graph requires the ability to traverse the graph.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
10
Traversing a graph is different than traversing a binary tree.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
11
In the breadth first traversal of a graph, all the nodes at any level, i, are visited after visiting the nodes at level i + 1.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
12
The breadth first traversal traverses the graph from each vertex that is not visited.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
13
In breadth first traversal, starting at the first vertex, the graph is traversed as little as possible.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
14
If the graph represents a highway structure, the weight can represent the distance between two places or the travel time from one place to another.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
15
The shortest path algorithm, also called a greedy algorithm, was developed by Dijkstra.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
16
A weight free tree T is a simple graph such that if u and v are two vertices in T, there is a unique path from u to v.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
17
A tree T is called a spanning tree of graph G if T is a subgraph of G such that V(T) = V(G), that is, all the vertices of G are in T.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
18
A graph G has a spanning tree if and only if G is connected; from this it follows that to determine a spanning tree of a graph, the graph must be connected.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
19
The topological sort algorithm can be implemented either using the depth first traversal or the breadth first traversal.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
20
In the breadth first topological ordering, we first find a vertex that has a predecessor vertex and place it first in the topological ordering.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
21
The breadth first traversal algorithm is similar to traversing a binary tree level-by-level.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
22
In the breadth first traversal algorithm, the root node is visited last.
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
23
____ are used to model electrical circuits, chemical compounds, highway maps, and so on.

A) Trees
B) Pictures
C) Graphs
D) Models
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
24
The symbol ''____'' means ''Cartesian product.''

A) *
B) ×
C) +
D) %
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
25
Let V(G) denote the set of vertices, and E(G) denote the set of edges of a graph G, then if the elements of E are ordered pairs, G is called a directed graph or ____.

A) bigraph
B) d-graph
C) dir-graph
D) digraph
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
26
When drawing a graph, the vertices are drawn as ____.

A) circles
B) squares
C) triangles
D) lines
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
27
When drawing a graph, a ____ inside the circle represents the vertex.

A) name
B) block
C) vision
D) label
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
28
In an undirected graph, the edges are drawn using ____.

A) circles
B) lines
C) arrows
D) triangles
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
29
In a directed graph, the edges are drawn using ____.

A) lines
B) circles
C) arrows
D) triangles
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
30
A ____ is a path in which all the vertices, except possibly the first and last vertices, are distinct.

A) simple path
B) first path
C) complex path
D) best path
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
31
A ____ in G is a simple path in which the first and last vertices are the same.

A) circle
B) loop
C) cycle
D) recursion
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
32
Let G be an undirected graph. G is called ____ if there is a path from any vertex to any other vertex.

A) attached
B) converted
C) completed
D) connected
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
33
Let G be an undirected graph. A maximal subset of connected vertices is called a ____ of G.

A) component
B) property
C) solution
D) technique
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
34
Let G be an undirected graph. G is called ____ if any two vertices in G are connected.

A) weakly connected
B) completely connected
C) strongly connected
D) inversely connected
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
35
The statement ____ declares graphIt to be an iterator.

A) linkedListIterator graphIt<int>;
B) linkedListIterator<int> graphIt;
C) linkedListIterator.int graphIt;
D) linkedListIterator<int> graphIt<int>;
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
36
The breadth first traversal of a graph is similar to traversing a binary tree ____.

A) node-by-node
B) branch-by-branch
C) root-to-leaf
D) level-by-level
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
37
Let G be a weighted graph, let u and v be two vertices in G, and let P be a path in G from u to v. The weight of the path P is the ____ of all the edges on the path P.

A) sum of the edges
B) product of the weights
C) sum of the weights
D) product of the edges
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
38
Let G be a weighted graph, a minimum (minimal) spanning tree of G is a spanning tree with the ____.

A) maximum weight
B) minimum weight
C) maximum height
D) minimum height
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
39
There are two well-known algorithms, ____ algorithm and Kruskal's algorithm, for finding a minimum spanning tree of a graph.

A) Prim's
B) Newton's
C) Euler's
D) Orwell's
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
40
Let G be a directed graph and V(G) = {v1, v2, . . ., vn}, where n >= 0. A(n) ____ of V(G) is a linear ordering vi1, vi2, . . ., vin of the vertices such that, if vij is a predecessor of vik, j does not equal k, 1 <= j <= n, 1 <= k <= n, then vij precedes vik, that is, j < k in this linear ordering.

A) ontological ordering
B) orthogonal ordering
C) topological ordering
D) typographical ordering
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
41
A ____ is a path of nonzero length from a vertex u to u with no repeated edges.

A) cycle
B) unit of work
C) circuit
D) transit
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
42
A circuit in a graph that includes all the edges of the graph is called a(n) ____.

A) Euler circuit
B) Newton circuit
C) Einstein circuit
D) Prim circuit
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
43
A graph G is said to be ____ if either G is a trivial graph or G has an Euler circuit.

A) Newtonian
B) Orwellian
C) Euclidian
D) Eulerian
Unlock Deck
Unlock for access to all 43 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 43 flashcards in this deck.