Deck 20: Graphs

Full screen (f)
exit full mode
Question
Linked lists cannot be used to implement an adjacency list.
Use Space or
up arrow
down arrow
to flip the card.
Question
In a directed graph,the pairs (u,v)and (v,u)represent the same edge.
Question
The ____ of sets A and B is the set of all elements that are in A and B.

A) intersection
B) union
C) graph
D) reunion
Question
If the elements of E(G)are ordered pairs,G is called a(n)____ graph.

A) undirected
B) directed
C) weighted
D) spanning
Question
In a(n)____ graph,the edges are drawn using arrows.

A) pointed
B) vector
C) directed
D) undirected
Question
A graph G is a pair,G = (V,E),where V is a finite nonempty set called the set of ____ of G,and the elements of E are the pairs of elements of V.

A) nodes
B) branches
C) vertices
D) edges
Question
The implementation of a breadth first graph traversal uses a stack.
Question
A graph might have cycles; therefore,we might not be able to traverse the entire graph from a single vertex.
Question
The two most common graph traversal algorithms are depth first traversal and breadth first traversal.
Question
Let G be an undirected graph.Let u and v be two vertices in G.Then u and v are called ____ if there is an edge from one to the other.

A) adjacent
B) weighted
C) connected
D) shortest path
Question
A graph H is called a(n)____ of G if V(H)is a subset of V(G)and E(H)is a subset of E(G); that is,every vertex of H is a vertex of G,and every edge in H is an edge in G.

A) matrix
B) intersection
C) subgraph
D) union
Question
The depth first traversal is similar to the postorder traversal of a binary tree.
Question
A binary tree has no cycles.
Question
Y is a(n)____ of X if every element of Y is also an element of X.

A) derivative
B) subset
C) inheritee
D) shallow copy
Question
It is possible to design Prim's algorithm so that it is of the order O(n²).
Question
We can always traverse an entire graph from a single vertex.
Question
Graph theory started in 1736 with the ____ problem.

A) Königsberg bridge
B) Tower of Hanoi
C) Westminster
D) League of Augsburg
Question
The ____ of sets A and B is the set of all elements that are in A or in B.

A) intersection
B) union
C) graph
D) reunion
Question
A simple path is a path in which all vertices,except possibly the first and last vertices,are distinct.
Question
An edge incident on a single vertex is called a(n)____.

A) block
B) cycle
C) component
D) loop
Question
A maximal subset of connected vertices is called a ____ of G.

A) cycle
B) union
C) subset
D) component
Question
A set Y is called a(n)____________________ of X if every element of Y is also an element of X.
Question
A graph is called a(n)____ graph if it has no loops and no parallel edges.

A) simple
B) undirected
C) directed
D) weighted
Question
In a(n)____________________ graph,the tail of a pictorial directed edge is the origin,and the head is the destination.
Question
Two well-known algorithms,Prim's algorithm and ____'s algorithm,can be used to find a minimal spanning tree of a graph.

A) Euler
B) Dekart
C) Kruskal
D) Dijkstra
Question
In a graph directed G,for each vertex,v,the vertices adjacent to v are called ____ successors.

A) immediate
B) adjacent
C) path
D) parallel
Question
In a graph G,if the edges connecting two vertices have weights assigned to them,the graph is called a ____ graph.

A) source
B) weighted
C) spanning
D) minimal
Question
If two edges,e? and e?,are associated with the same pair of vertices {u,v},then e? and e? are called ____ edges.

A) parallel
B) adjacent
C) connected
D) incident
Question
A(n)____________________ graph G is called strongly connected if any two vertices in G are connected.
Question
The edges connecting two vertices can be assigned a non-negative real number,called the ____ of the edge.

A) key
B) weight
C) width
D) height
Question
The shortest path algorithm is also called the ____ algorithm.

A) recursive
B) minimal
C) greedy
D) spanning
Question
Let G be an undirected graph.Let u and v be two vertices in G.A(n)____________________ in G is a simple path in which the first and last vertices are the same.
Question
A minimal spanning tree of G is a spanning tree with the minimum ____.

A) path
B) cycle
C) weight
D) height
Question
A(n)____ tree T is a simple graph such that if u and v are two vertices in T,a unique path exists from u to v.

A) rooted
B) free
C) spanning
D) weighted
Question
The shortest path algorithm was developed by ____.

A) Euler
B) Kruskal
C) Prim
D) Dijkstra
Question
A tree in which a particular vertex is designated as a root is called a(n)____ tree.

A) spanning
B) weighted
C) free
D) rooted
Question
In Prim's algorithm for the minimal spanning tree,we start at a designated vertex,which we call the ____ vertex.

A) index
B) source
C) root
D) destination
Question
Let e (u,v)be an edge in an undirected graph G.The edge e is said to be ____________________ on the vertices u and v.
Question
A tree T is called a(n)____ tree of graph G if T is a subgraph of G such that V(T)= V(G); that is,if all vertices of G are in T.

A) weighted
B) spanning
C) rooted
D) directed
Question
The shortest path is the path with the smallest ____.

A) length
B) index
C) weight
D) key
Question
A graph is ____________________ if the number of vertices is zero.
Question
A tree T is called a(n)____________________ of graph G if T is a subgraph of G such that V(T )= V(G).
Question
The ____________________ traversal of a graph is similar to traversing a binary tree level by level.
Question
  A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,3,4,2,5,7,8,6,9.<div style=padding-top: 35px>
A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,3,4,2,5,7,8,6,9.
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 sum of the weights of all the ____________________ on the path P.
Question
____________________ algorithm builds the tree iteratively by adding edges until a minimal spanning tree is obtained.
Question
In a(n)_______________ graph. if In a(n)_______________ graph. if   ,then   so  <div style=padding-top: 35px> ,then In a(n)_______________ graph. if   ,then   so  <div style=padding-top: 35px> so In a(n)_______________ graph. if   ,then   so  <div style=padding-top: 35px>
Question
The ____________________ algorithm gives the shortest distance for a given node to every other node in the graph.
Question
The starting vertex of a shortest path in a graph is called the ____________________.
Question
  A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,4,3,2,5,7,8,6,9.<div style=padding-top: 35px>
A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,4,3,2,5,7,8,6,9.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 20: Graphs
1
Linked lists cannot be used to implement an adjacency list.
False
2
In a directed graph,the pairs (u,v)and (v,u)represent the same edge.
False
3
The ____ of sets A and B is the set of all elements that are in A and B.

A) intersection
B) union
C) graph
D) reunion
A
4
If the elements of E(G)are ordered pairs,G is called a(n)____ graph.

A) undirected
B) directed
C) weighted
D) spanning
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
In a(n)____ graph,the edges are drawn using arrows.

A) pointed
B) vector
C) directed
D) undirected
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
A graph G is a pair,G = (V,E),where V is a finite nonempty set called the set of ____ of G,and the elements of E are the pairs of elements of V.

A) nodes
B) branches
C) vertices
D) edges
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The implementation of a breadth first graph traversal uses a stack.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
A graph might have cycles; therefore,we might not be able to traverse the entire graph from a single vertex.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
The two most common graph traversal algorithms are depth first traversal and breadth first traversal.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
Let G be an undirected graph.Let u and v be two vertices in G.Then u and v are called ____ if there is an edge from one to the other.

A) adjacent
B) weighted
C) connected
D) shortest path
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
A graph H is called a(n)____ of G if V(H)is a subset of V(G)and E(H)is a subset of E(G); that is,every vertex of H is a vertex of G,and every edge in H is an edge in G.

A) matrix
B) intersection
C) subgraph
D) union
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
The depth first traversal is similar to the postorder traversal of a binary tree.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
A binary tree has no cycles.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Y is a(n)____ of X if every element of Y is also an element of X.

A) derivative
B) subset
C) inheritee
D) shallow copy
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
It is possible to design Prim's algorithm so that it is of the order O(n²).
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
We can always traverse an entire graph from a single vertex.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
Graph theory started in 1736 with the ____ problem.

A) Königsberg bridge
B) Tower of Hanoi
C) Westminster
D) League of Augsburg
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
The ____ of sets A and B is the set of all elements that are in A or in B.

A) intersection
B) union
C) graph
D) reunion
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
A simple path is a path in which all vertices,except possibly the first and last vertices,are distinct.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
An edge incident on a single vertex is called a(n)____.

A) block
B) cycle
C) component
D) loop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
A maximal subset of connected vertices is called a ____ of G.

A) cycle
B) union
C) subset
D) component
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
A set Y is called a(n)____________________ of X if every element of Y is also an element of X.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
A graph is called a(n)____ graph if it has no loops and no parallel edges.

A) simple
B) undirected
C) directed
D) weighted
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
In a(n)____________________ graph,the tail of a pictorial directed edge is the origin,and the head is the destination.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Two well-known algorithms,Prim's algorithm and ____'s algorithm,can be used to find a minimal spanning tree of a graph.

A) Euler
B) Dekart
C) Kruskal
D) Dijkstra
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
In a graph directed G,for each vertex,v,the vertices adjacent to v are called ____ successors.

A) immediate
B) adjacent
C) path
D) parallel
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
In a graph G,if the edges connecting two vertices have weights assigned to them,the graph is called a ____ graph.

A) source
B) weighted
C) spanning
D) minimal
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
If two edges,e? and e?,are associated with the same pair of vertices {u,v},then e? and e? are called ____ edges.

A) parallel
B) adjacent
C) connected
D) incident
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
A(n)____________________ graph G is called strongly connected if any two vertices in G are connected.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
The edges connecting two vertices can be assigned a non-negative real number,called the ____ of the edge.

A) key
B) weight
C) width
D) height
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The shortest path algorithm is also called the ____ algorithm.

A) recursive
B) minimal
C) greedy
D) spanning
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
Let G be an undirected graph.Let u and v be two vertices in G.A(n)____________________ in G is a simple path in which the first and last vertices are the same.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
A minimal spanning tree of G is a spanning tree with the minimum ____.

A) path
B) cycle
C) weight
D) height
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
A(n)____ tree T is a simple graph such that if u and v are two vertices in T,a unique path exists from u to v.

A) rooted
B) free
C) spanning
D) weighted
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The shortest path algorithm was developed by ____.

A) Euler
B) Kruskal
C) Prim
D) Dijkstra
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
A tree in which a particular vertex is designated as a root is called a(n)____ tree.

A) spanning
B) weighted
C) free
D) rooted
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
In Prim's algorithm for the minimal spanning tree,we start at a designated vertex,which we call the ____ vertex.

A) index
B) source
C) root
D) destination
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
Let e (u,v)be an edge in an undirected graph G.The edge e is said to be ____________________ on the vertices u and v.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
A tree T is called a(n)____ tree of graph G if T is a subgraph of G such that V(T)= V(G); that is,if all vertices of G are in T.

A) weighted
B) spanning
C) rooted
D) directed
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
The shortest path is the path with the smallest ____.

A) length
B) index
C) weight
D) key
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
A graph is ____________________ if the number of vertices is zero.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
A tree T is called a(n)____________________ of graph G if T is a subgraph of G such that V(T )= V(G).
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
The ____________________ traversal of a graph is similar to traversing a binary tree level by level.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
  A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,3,4,2,5,7,8,6,9.
A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,3,4,2,5,7,8,6,9.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
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 sum of the weights of all the ____________________ on the path P.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
____________________ algorithm builds the tree iteratively by adding edges until a minimal spanning tree is obtained.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
In a(n)_______________ graph. if In a(n)_______________ graph. if   ,then   so  ,then In a(n)_______________ graph. if   ,then   so  so In a(n)_______________ graph. if   ,then   so
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
The ____________________ algorithm gives the shortest distance for a given node to every other node in the graph.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
The starting vertex of a shortest path in a graph is called the ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
  A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,4,3,2,5,7,8,6,9.
A(n)____________________ ordering of the vertices of the accompanying graph is 0,1,4,3,2,5,7,8,6,9.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.