Deck 7: Graph Theory

Full screen (f)
exit full mode
Question
Suppose that a graph containing four vertices A, B, C, and D has an Euler circuit starting from A. If the degree of the vertex B is 4, then how many times will the Euler circuit pass the vertex B?

A)1
B)2
C)3
D)4
Use Space or
up arrow
down arrow
to flip the card.
Question
A circuit or cycle in a graph is a path that begins and ends at the same vertex.
Question
What is the degree of each vertex in the figure below? <strong>What is the degree of each vertex in the figure below?  </strong> A)3 B)4 C)5 D)6 <div style=padding-top: 35px>

A)3
B)4
C)5
D)6
Question
When graphs are represented pictorially using dots and segments, the dots are called ___________.

A)points
B)vertices
C)stops
D)edges
Question
How many Euler circuits starting from the vertex B are possible? <strong>How many Euler circuits starting from the vertex B are possible?  </strong> A)4 B)6 C)8 D)12 <div style=padding-top: 35px>

A)4
B)6
C)8
D)12
Question
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)ABDCA B)ABDACDA C)ADBACD D)No Euler circuit exists. <div style=padding-top: 35px>

A)ABDCA
B)ABDACDA
C)ADBACD
D)No Euler circuit exists.
Question
According to Euler's theorem, the figure below has an Euler circuit.
According to Euler's theorem, the figure below has an Euler circuit.  <div style=padding-top: 35px>
Question
The _______________ of a vertex is the number of edges that touch that vertex.

A)magnitude
B)amplitude
C)period
D)degree
Question
If a circuit traverses each edge of the graph exactly once, it is called a(n) _____________ circuit.

A)traveling
B)single
C)Hamilton
D)Euler
Question
Suppose the edges of a certain graph represent phone lines that must be maintained, and the vertices represent junctions. A worker maintaining the lines would like to find an Euler circuit for this graph to increase ___________.

A)payment
B)mileage
C)efficiency
D)workload
Question
The computers in an office area are connected as follows:

A)The computer in Office A is connected to all computers.
B)The computer in Office B is connected to Offices A and D.
C)The computer in Office C is connected to Offices A and D.
D)The computer in Office D is connected to Offices A, B, and C.
Question
What is the degree of vertex F? <strong>What is the degree of vertex F?  </strong> A)2 B)3 C)4 D)5 <div style=padding-top: 35px>

A)2
B)3
C)4
D)5
Question
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)ABCDEFA B)ABCDFEA C)AFDECBA D)No Euler circuit exists. <div style=padding-top: 35px>

A)ABCDEFA
B)ABCDFEA
C)AFDECBA
D)No Euler circuit exists.
Question
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)AEFDCBA B)EABCDFE C)DFEABCD D)No Euler circuit exists. <div style=padding-top: 35px>

A)AEFDCBA
B)EABCDFE
C)DFEABCD
D)No Euler circuit exists.
Question
What is the degree of each vertex in the figure below? <strong>What is the degree of each vertex in the figure below?  </strong> A)2 B)3 C)4 D)5 <div style=padding-top: 35px>

A)2
B)3
C)4
D)5
Question
Which of the following vertices have degree 2? <strong>Which of the following vertices have degree 2?  </strong> A)A and B B)B and C C)C and D D)A and D <div style=padding-top: 35px>

A)A and B
B)B and C
C)C and D
D)A and D
Question
According to Euler's theorem, a connected graph has an Euler circuit precisely when every vertex has a(n) ___________ degree.

A)nonzero
B)positive
C)even
D)odd
Question
Which of the following vertices have degree 2? <strong>Which of the following vertices have degree 2?  </strong> A)A and B B)C and D C)B and E D)D and F <div style=padding-top: 35px>

A)A and B
B)C and D
C)B and E
D)D and F
Question
According to Euler's theorem, the figure below has an Euler circuit.
According to Euler's theorem, the figure below has an Euler circuit.  <div style=padding-top: 35px>
Question
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)ABDCA B)ABDACDA C)ADBACA D)No Euler circuit exists. <div style=padding-top: 35px>

A)ABDCA
B)ABDACDA
C)ADBACA
D)No Euler circuit exists.
Question
The edges in a certain graph represent roads, and the vertices represent intersections. We want to time the traffic signals at each intersection and not visit any intersection twice. Should we look for an Euler circuit or a Hamilton circuit?

A)Euler
B)Hamilton
C)either
D)neither
Question
Find a Hamilton circuit for the figure below. <strong>Find a Hamilton circuit for the figure below.  </strong> A)ABCDECFA B)ABCEDEFA C)AFECBDBA D)No Hamilton circuit exists. <div style=padding-top: 35px>

A)ABCDECFA
B)ABCEDEFA
C)AFECBDBA
D)No Hamilton circuit exists.
Question
If each vertex of a graph is connected to every other vertex by an edge, then it is called a(n) _______________ graph.

A)Hamilton
B)Euler
C)complete
D)direct
Question
The edges in a certain graph represent roads, and the vertices represent intersections. We want to clean all of the roads and not require the street sweeper to move along streets that have already been cleaned. Should we look for an Euler circuit or a Hamilton circuit?

A)Euler
B)Hamilton
C)either
D)neither
Question
The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he uses the cheapest link algorithm? <strong>The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he uses the cheapest link algorithm?  </strong> A)3885 B)3950 C)4370 D)5135 <div style=padding-top: 35px>

A)3885
B)3950
C)4370
D)5135
Question
Finding a Hamilton circuit with the shortest distance for a given complete graph is called _______________.

A)the Hamilton process
B)the traveling salesman problem
C)the Fleury's algorithm
D)the optimal marketing problem
Question
A traveling salesman must visit all four cities indicated in the figure below. When he starts in A, what is the second city to visit according to the nearest-neighbor algorithm? <strong>A traveling salesman must visit all four cities indicated in the figure below. When he starts in A, what is the second city to visit according to the nearest-neighbor algorithm?  </strong> A)B B)C C)D D)C or D <div style=padding-top: 35px>

A)B
B)C
C)D
D)C or D
Question
If a graph has a vertex of degree _____, then each edge meeting that vertex must be part of any Hamilton circuit.

A)1
B)2
C)3
D)4
Question
When applying the nearest-neighbor algorithm, if there are two or more vertices equally nearby, any one of them may be selected.
Question
When applying the cheapest-link algorithm, do not choose an edge that would result in a vertex of degree ___.

A)1
B)2
C)3
D)4
Question
The nearest-neighbor algorithm constructs a(n) _______________ circuit in a complete graph by starting at a vertex.

A)Fleury
B)Euler
C)Vector
D)Hamilton
Question
Find a Hamilton circuit for the figure below. <strong>Find a Hamilton circuit for the figure below.  </strong> A)ABCDEFA B)AFDABCE C)AFCDEBA D)No Hamilton circuit exists. <div style=padding-top: 35px>

A)ABCDEFA
B)AFDABCE
C)AFCDEBA
D)No Hamilton circuit exists.
Question
The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he starts in city A and uses the nearest-neighbor algorithm? <strong>The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he starts in city A and uses the nearest-neighbor algorithm?  </strong> A)3885 B)3950 C)4370 D)5135 <div style=padding-top: 35px>

A)3885
B)3950
C)4370
D)5135
Question
How many smaller circuits can be a part of a Hamilton circuit?

A)0
B)1
C)2
D)It varies according to the number of vertices of the Hamilton circuit.
Question
If a circuit of a graph visits each vertex exactly once, then it is called a(n) _______________.

A)Euler circuit
B)Hamilton circuit
C)Vector circuit
D)Fleury circuit
Question
A traveling salesman must visit all four cities indicated in the figure below. Which is the shortest route he can take if he wants to begin and end in city A? <strong>A traveling salesman must visit all four cities indicated in the figure below. Which is the shortest route he can take if he wants to begin and end in city A?  </strong> A)ABCDA B)ACDBA C)ABDCA D)ADBCA <div style=padding-top: 35px>

A)ABCDA
B)ACDBA
C)ABDCA
D)ADBCA
Question
A traveling salesman must visit all four cities indicated in the figure below. How many miles does he travel if he starts in A and then visits B, C, and D before returning to A? <strong>A traveling salesman must visit all four cities indicated in the figure below. How many miles does he travel if he starts in A and then visits B, C, and D before returning to A?  </strong> A)892 miles B)1127 miles C)1239 miles D)1273 miles <div style=padding-top: 35px>

A)892 miles
B)1127 miles
C)1239 miles
D)1273 miles
Question
The graph below has two odd-degree vertices, so no Euler circuit exists. Suppose we would like to find a route that backtracks as little as possible. What duplicate edge could we create to help us find this route? <strong>The graph below has two odd-degree vertices, so no Euler circuit exists. Suppose we would like to find a route that backtracks as little as possible. What duplicate edge could we create to help us find this route?  </strong> A)between A and B B)between B and C C)between D and E D)between E and F <div style=padding-top: 35px>

A)between A and B
B)between B and C
C)between D and E
D)between E and F
Question
Which of the following is not a practical situation where finding an Euler circuit may be important?

A)Delivery of groceries.
B)Garbage pickup.
C)Street sweepers.
D)Driving kids to school.
Question
If a complete graph has five vertices, then how many edges are in the graph?

A)10
B)14
C)18
D)20
Question
In a tree, if a parent has the level of 2, then what is the level of the grandchildren?

A)3
B)4
C)5
D)6
Question
Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem. <strong>Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem.  </strong> A)ADECBA B)ADEBCA C)ACBEDA D)ABECDA <div style=padding-top: 35px>

A)ADECBA
B)ADEBCA
C)ACBEDA
D)ABECDA
Question
The largest level of the tree is called the _____________.

A)length
B)width
C)height
D)depth
Question
In a complete binary tree of height H, the number of parents equals _________.

A) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px> <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
B) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
C) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
D) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
Question
Every vertex of a tree is either a parent or a _______________ but not both.

A)branch
B)child
C)leaf
D)stem
Question
Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below. <strong>Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below.  </strong> A)ABECDA B)ACBEDA C)ADEBCA D)ADECBA <div style=padding-top: 35px>

A)ABECDA
B)ACBEDA
C)ADEBCA
D)ADECBA
Question
In a complete binary tree of height H, the number of vertices equals _________.

A) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <div style=padding-top: 35px> <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <div style=padding-top: 35px> <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <div style=padding-top: 35px>
B) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <div style=padding-top: 35px>
C) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <div style=padding-top: 35px>
D) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <div style=padding-top: 35px>
Question
A binary tree is _______________ if all the leaves are at the highest level.

A)tall
B)complete
C)complex
D)fully grown
Question
A tree has the following characteristic. Find the total number of vertices. <strong>A tree has the following characteristic. Find the total number of vertices.  </strong> A)13 B)18 C)20 D)26 <div style=padding-top: 35px>

A)13
B)18
C)20
D)26
Question
You want to use a dictionary so that you have to check any word at most six times. How big a dictionary can you accommodate?

A)64 words
B)63 words
C)12 words
D)120 words
Question
On a complete graph with n vertices, there are n!/2 Hamilton circuits starting at a given vertex, not counting reverse routes. If a traveling salesman wanted to make deliveries to nine cities in a region, how many possible routes would he have to check to find the shortest one?

A)2520
B)20,160
C)181,440
D)1,814,400
Question
In a complete binary tree, how many vertices have the level L or <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px>

A) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px>
B) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px> <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px>
C) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px> <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px>
D) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <div style=padding-top: 35px>
Question
In a complete binary tree of height H, the number of leaves equals _________.

A) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px> <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
B) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
C) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
D) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)   <div style=padding-top: 35px>
Question
Estimate the largest number of checks needed if you have a 60,000-word dictionary.

A)14
B)15
C)16
D)17
Question
Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below. <strong>Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below.  </strong> A)ABECDA B)ACBEDA C)ADEBCA D)ADECBA <div style=padding-top: 35px>

A)ABECDA
B)ACBEDA
C)ADEBCA
D)ADECBA
Question
If each parent of a tree has exactly two children, then the tree is called ___________.

A)alternating
B)binary
C)equivalent
D)complete
Question
A _______________ is a graph that contains no circuits.

A)tree
B)branch
C)leaf
D)stem
Question
Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem. <strong>Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem.  </strong> A)ADECBA B)ADEBCA C)ACBEDA D)ABECDA <div style=padding-top: 35px>

A)ADECBA
B)ADEBCA
C)ACBEDA
D)ABECDA
Question
A spell-checker is using a binary tree. If the size of the dictionary doubles, what will be the increase in the number of required checks?

A)1
B)2
C)3
D)4
Question
What is the level of the root of a tree?

A)0
B)1
C)2
D)3
Question
What size dictionary can be accommodated by a spell-checker that uses 30 checks?

A)1.1 million words
B)1.1 billion words
C)1.1 trillion words
D)1.1 quadrillion words
Question
Suppose you tell a story to two of your friends. Some people repeat the story to two others, and in turn some of these pass the story on. Each time the story is told, it is told to two new people and no one hears the story twice. Sometime later, it turns out that 384 people have heard the story, but not related it to others. How many people have heard the story from others?

A)766
B)767
C)768
D)769
Question
One night you put a quarter into a slot machine and get back two quarters. The next night, you put these two quarters back in the machine one at a time, and each time two quarters came out. This pattern continued through the sixth night, after which you took your winnings and went home. How much money did you take home?

A)64 quarters
B)48 quarters
C)32 quarters
D)16 quarters
Question
There are 65 members of an organization. The plan for disseminating news requires one member to contact two others with the information. Each member who receives the news contacts two members who have not yet gotten the news. This continues until all members have the information. How many members contact others?

A)64
B)48
C)32
D)16
Question
Suppose you tell a story to two of your friends. Some people repeat the story to two others, and in turn some pass the story on. Each time the story is told, it is told to two new people and no one hears the story twice. Sometime later, 271 people know the story. How many people have related the story to others?

A)271
B)270
C)169
D)135
Question
One night you put a quarter into a slot machine and get back two quarters. The next night, you put these two quarters back in the machine one at a time, and each time two quarters came out. This pattern continued through the sixth night, after which you took your winnings and went home. How many quarters were fed into the machine?

A)64
B)63
C)47
D)31
Question
One night you put a quarter into a slot machine and get back two quarters. The next night, you put these two quarters back in the machine one at a time, and each time two quarters came out. If you want to go home taking your winnings of $500, then what nights should this pattern be continued through?

A)10th night
B)11th night
C)12th night
D)13th night
Question
We have a dictionary consisting of 500 words. If we use a binary tree as a spell-checker, how many checks might be required to test whether "tat" is a valid word?

A)7
B)8
C)9
D)10
Question
Which of the following is NOT a child in the tree below? <strong>Which of the following is NOT a child in the tree below?  </strong> A)A B)D C)G D)H <div style=padding-top: 35px>

A)A
B)D
C)G
D)H
Question
Which of the following is NOT a leaf in the tree below? <strong>Which of the following is NOT a leaf in the tree below?  </strong> A)F B)G C)H D)J <div style=padding-top: 35px>

A)F
B)G
C)H
D)J
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/70
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 7: Graph Theory
1
Suppose that a graph containing four vertices A, B, C, and D has an Euler circuit starting from A. If the degree of the vertex B is 4, then how many times will the Euler circuit pass the vertex B?

A)1
B)2
C)3
D)4
B
2
A circuit or cycle in a graph is a path that begins and ends at the same vertex.
True
3
What is the degree of each vertex in the figure below? <strong>What is the degree of each vertex in the figure below?  </strong> A)3 B)4 C)5 D)6

A)3
B)4
C)5
D)6
C
4
When graphs are represented pictorially using dots and segments, the dots are called ___________.

A)points
B)vertices
C)stops
D)edges
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
5
How many Euler circuits starting from the vertex B are possible? <strong>How many Euler circuits starting from the vertex B are possible?  </strong> A)4 B)6 C)8 D)12

A)4
B)6
C)8
D)12
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
6
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)ABDCA B)ABDACDA C)ADBACD D)No Euler circuit exists.

A)ABDCA
B)ABDACDA
C)ADBACD
D)No Euler circuit exists.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
7
According to Euler's theorem, the figure below has an Euler circuit.
According to Euler's theorem, the figure below has an Euler circuit.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
8
The _______________ of a vertex is the number of edges that touch that vertex.

A)magnitude
B)amplitude
C)period
D)degree
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
9
If a circuit traverses each edge of the graph exactly once, it is called a(n) _____________ circuit.

A)traveling
B)single
C)Hamilton
D)Euler
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
10
Suppose the edges of a certain graph represent phone lines that must be maintained, and the vertices represent junctions. A worker maintaining the lines would like to find an Euler circuit for this graph to increase ___________.

A)payment
B)mileage
C)efficiency
D)workload
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
11
The computers in an office area are connected as follows:

A)The computer in Office A is connected to all computers.
B)The computer in Office B is connected to Offices A and D.
C)The computer in Office C is connected to Offices A and D.
D)The computer in Office D is connected to Offices A, B, and C.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
12
What is the degree of vertex F? <strong>What is the degree of vertex F?  </strong> A)2 B)3 C)4 D)5

A)2
B)3
C)4
D)5
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
13
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)ABCDEFA B)ABCDFEA C)AFDECBA D)No Euler circuit exists.

A)ABCDEFA
B)ABCDFEA
C)AFDECBA
D)No Euler circuit exists.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
14
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)AEFDCBA B)EABCDFE C)DFEABCD D)No Euler circuit exists.

A)AEFDCBA
B)EABCDFE
C)DFEABCD
D)No Euler circuit exists.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
15
What is the degree of each vertex in the figure below? <strong>What is the degree of each vertex in the figure below?  </strong> A)2 B)3 C)4 D)5

A)2
B)3
C)4
D)5
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following vertices have degree 2? <strong>Which of the following vertices have degree 2?  </strong> A)A and B B)B and C C)C and D D)A and D

A)A and B
B)B and C
C)C and D
D)A and D
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
17
According to Euler's theorem, a connected graph has an Euler circuit precisely when every vertex has a(n) ___________ degree.

A)nonzero
B)positive
C)even
D)odd
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following vertices have degree 2? <strong>Which of the following vertices have degree 2?  </strong> A)A and B B)C and D C)B and E D)D and F

A)A and B
B)C and D
C)B and E
D)D and F
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
19
According to Euler's theorem, the figure below has an Euler circuit.
According to Euler's theorem, the figure below has an Euler circuit.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
20
Find an Euler circuit for the figure below. <strong>Find an Euler circuit for the figure below.  </strong> A)ABDCA B)ABDACDA C)ADBACA D)No Euler circuit exists.

A)ABDCA
B)ABDACDA
C)ADBACA
D)No Euler circuit exists.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
21
The edges in a certain graph represent roads, and the vertices represent intersections. We want to time the traffic signals at each intersection and not visit any intersection twice. Should we look for an Euler circuit or a Hamilton circuit?

A)Euler
B)Hamilton
C)either
D)neither
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
22
Find a Hamilton circuit for the figure below. <strong>Find a Hamilton circuit for the figure below.  </strong> A)ABCDECFA B)ABCEDEFA C)AFECBDBA D)No Hamilton circuit exists.

A)ABCDECFA
B)ABCEDEFA
C)AFECBDBA
D)No Hamilton circuit exists.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
23
If each vertex of a graph is connected to every other vertex by an edge, then it is called a(n) _______________ graph.

A)Hamilton
B)Euler
C)complete
D)direct
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
24
The edges in a certain graph represent roads, and the vertices represent intersections. We want to clean all of the roads and not require the street sweeper to move along streets that have already been cleaned. Should we look for an Euler circuit or a Hamilton circuit?

A)Euler
B)Hamilton
C)either
D)neither
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
25
The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he uses the cheapest link algorithm? <strong>The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he uses the cheapest link algorithm?  </strong> A)3885 B)3950 C)4370 D)5135

A)3885
B)3950
C)4370
D)5135
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
26
Finding a Hamilton circuit with the shortest distance for a given complete graph is called _______________.

A)the Hamilton process
B)the traveling salesman problem
C)the Fleury's algorithm
D)the optimal marketing problem
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
27
A traveling salesman must visit all four cities indicated in the figure below. When he starts in A, what is the second city to visit according to the nearest-neighbor algorithm? <strong>A traveling salesman must visit all four cities indicated in the figure below. When he starts in A, what is the second city to visit according to the nearest-neighbor algorithm?  </strong> A)B B)C C)D D)C or D

A)B
B)C
C)D
D)C or D
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
28
If a graph has a vertex of degree _____, then each edge meeting that vertex must be part of any Hamilton circuit.

A)1
B)2
C)3
D)4
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
29
When applying the nearest-neighbor algorithm, if there are two or more vertices equally nearby, any one of them may be selected.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
30
When applying the cheapest-link algorithm, do not choose an edge that would result in a vertex of degree ___.

A)1
B)2
C)3
D)4
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
31
The nearest-neighbor algorithm constructs a(n) _______________ circuit in a complete graph by starting at a vertex.

A)Fleury
B)Euler
C)Vector
D)Hamilton
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
32
Find a Hamilton circuit for the figure below. <strong>Find a Hamilton circuit for the figure below.  </strong> A)ABCDEFA B)AFDABCE C)AFCDEBA D)No Hamilton circuit exists.

A)ABCDEFA
B)AFDABCE
C)AFCDEBA
D)No Hamilton circuit exists.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
33
The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he starts in city A and uses the nearest-neighbor algorithm? <strong>The following table shows the distance (in miles) between cities A, B, C, and D. When a traveling salesman visits all four cities, how many miles does he travel if he starts in city A and uses the nearest-neighbor algorithm?  </strong> A)3885 B)3950 C)4370 D)5135

A)3885
B)3950
C)4370
D)5135
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
34
How many smaller circuits can be a part of a Hamilton circuit?

A)0
B)1
C)2
D)It varies according to the number of vertices of the Hamilton circuit.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
35
If a circuit of a graph visits each vertex exactly once, then it is called a(n) _______________.

A)Euler circuit
B)Hamilton circuit
C)Vector circuit
D)Fleury circuit
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
36
A traveling salesman must visit all four cities indicated in the figure below. Which is the shortest route he can take if he wants to begin and end in city A? <strong>A traveling salesman must visit all four cities indicated in the figure below. Which is the shortest route he can take if he wants to begin and end in city A?  </strong> A)ABCDA B)ACDBA C)ABDCA D)ADBCA

A)ABCDA
B)ACDBA
C)ABDCA
D)ADBCA
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
37
A traveling salesman must visit all four cities indicated in the figure below. How many miles does he travel if he starts in A and then visits B, C, and D before returning to A? <strong>A traveling salesman must visit all four cities indicated in the figure below. How many miles does he travel if he starts in A and then visits B, C, and D before returning to A?  </strong> A)892 miles B)1127 miles C)1239 miles D)1273 miles

A)892 miles
B)1127 miles
C)1239 miles
D)1273 miles
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
38
The graph below has two odd-degree vertices, so no Euler circuit exists. Suppose we would like to find a route that backtracks as little as possible. What duplicate edge could we create to help us find this route? <strong>The graph below has two odd-degree vertices, so no Euler circuit exists. Suppose we would like to find a route that backtracks as little as possible. What duplicate edge could we create to help us find this route?  </strong> A)between A and B B)between B and C C)between D and E D)between E and F

A)between A and B
B)between B and C
C)between D and E
D)between E and F
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
39
Which of the following is not a practical situation where finding an Euler circuit may be important?

A)Delivery of groceries.
B)Garbage pickup.
C)Street sweepers.
D)Driving kids to school.
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
40
If a complete graph has five vertices, then how many edges are in the graph?

A)10
B)14
C)18
D)20
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
41
In a tree, if a parent has the level of 2, then what is the level of the grandchildren?

A)3
B)4
C)5
D)6
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
42
Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem. <strong>Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem.  </strong> A)ADECBA B)ADEBCA C)ACBEDA D)ABECDA

A)ADECBA
B)ADEBCA
C)ACBEDA
D)ABECDA
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
43
The largest level of the tree is called the _____________.

A)length
B)width
C)height
D)depth
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
44
In a complete binary tree of height H, the number of parents equals _________.

A) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)   <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)
B) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)
C) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)
D) <strong>In a complete binary tree of height H, the number of parents equals _________.</strong> A)     B)   C)   D)
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
45
Every vertex of a tree is either a parent or a _______________ but not both.

A)branch
B)child
C)leaf
D)stem
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
46
Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below. <strong>Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below.  </strong> A)ABECDA B)ACBEDA C)ADEBCA D)ADECBA

A)ABECDA
B)ACBEDA
C)ADEBCA
D)ADECBA
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
47
In a complete binary tree of height H, the number of vertices equals _________.

A) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)   <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)
B) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)
C) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)
D) <strong>In a complete binary tree of height H, the number of vertices equals _________.</strong> A)       B)   C)   D)
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
48
A binary tree is _______________ if all the leaves are at the highest level.

A)tall
B)complete
C)complex
D)fully grown
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
49
A tree has the following characteristic. Find the total number of vertices. <strong>A tree has the following characteristic. Find the total number of vertices.  </strong> A)13 B)18 C)20 D)26

A)13
B)18
C)20
D)26
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
50
You want to use a dictionary so that you have to check any word at most six times. How big a dictionary can you accommodate?

A)64 words
B)63 words
C)12 words
D)120 words
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
51
On a complete graph with n vertices, there are n!/2 Hamilton circuits starting at a given vertex, not counting reverse routes. If a traveling salesman wanted to make deliveries to nine cities in a region, how many possible routes would he have to check to find the shortest one?

A)2520
B)20,160
C)181,440
D)1,814,400
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
52
In a complete binary tree, how many vertices have the level L or <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)

A) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)
B) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)
C) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)   <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)
D) <strong>In a complete binary tree, how many vertices have the level L or  </strong> A)   B)     C)     D)
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
53
In a complete binary tree of height H, the number of leaves equals _________.

A) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)   <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)
B) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)
C) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)
D) <strong>In a complete binary tree of height H, the number of leaves equals _________.</strong> A)     B)   C)   D)
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
54
Estimate the largest number of checks needed if you have a 60,000-word dictionary.

A)14
B)15
C)16
D)17
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
55
Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below. <strong>Use the cheapest link algorithm to find an approximate solution to the traveling salesman problem for the figure below.  </strong> A)ABECDA B)ACBEDA C)ADEBCA D)ADECBA

A)ABECDA
B)ACBEDA
C)ADEBCA
D)ADECBA
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
56
If each parent of a tree has exactly two children, then the tree is called ___________.

A)alternating
B)binary
C)equivalent
D)complete
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
57
A _______________ is a graph that contains no circuits.

A)tree
B)branch
C)leaf
D)stem
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
58
Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem. <strong>Use the nearest-neighbor algorithm starting at vertex A of the figure below to find an approximate solution to the traveling salesman problem.  </strong> A)ADECBA B)ADEBCA C)ACBEDA D)ABECDA

A)ADECBA
B)ADEBCA
C)ACBEDA
D)ABECDA
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
59
A spell-checker is using a binary tree. If the size of the dictionary doubles, what will be the increase in the number of required checks?

A)1
B)2
C)3
D)4
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
60
What is the level of the root of a tree?

A)0
B)1
C)2
D)3
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
61
What size dictionary can be accommodated by a spell-checker that uses 30 checks?

A)1.1 million words
B)1.1 billion words
C)1.1 trillion words
D)1.1 quadrillion words
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
62
Suppose you tell a story to two of your friends. Some people repeat the story to two others, and in turn some of these pass the story on. Each time the story is told, it is told to two new people and no one hears the story twice. Sometime later, it turns out that 384 people have heard the story, but not related it to others. How many people have heard the story from others?

A)766
B)767
C)768
D)769
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
63
One night you put a quarter into a slot machine and get back two quarters. The next night, you put these two quarters back in the machine one at a time, and each time two quarters came out. This pattern continued through the sixth night, after which you took your winnings and went home. How much money did you take home?

A)64 quarters
B)48 quarters
C)32 quarters
D)16 quarters
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
64
There are 65 members of an organization. The plan for disseminating news requires one member to contact two others with the information. Each member who receives the news contacts two members who have not yet gotten the news. This continues until all members have the information. How many members contact others?

A)64
B)48
C)32
D)16
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
65
Suppose you tell a story to two of your friends. Some people repeat the story to two others, and in turn some pass the story on. Each time the story is told, it is told to two new people and no one hears the story twice. Sometime later, 271 people know the story. How many people have related the story to others?

A)271
B)270
C)169
D)135
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
66
One night you put a quarter into a slot machine and get back two quarters. The next night, you put these two quarters back in the machine one at a time, and each time two quarters came out. This pattern continued through the sixth night, after which you took your winnings and went home. How many quarters were fed into the machine?

A)64
B)63
C)47
D)31
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
67
One night you put a quarter into a slot machine and get back two quarters. The next night, you put these two quarters back in the machine one at a time, and each time two quarters came out. If you want to go home taking your winnings of $500, then what nights should this pattern be continued through?

A)10th night
B)11th night
C)12th night
D)13th night
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
68
We have a dictionary consisting of 500 words. If we use a binary tree as a spell-checker, how many checks might be required to test whether "tat" is a valid word?

A)7
B)8
C)9
D)10
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following is NOT a child in the tree below? <strong>Which of the following is NOT a child in the tree below?  </strong> A)A B)D C)G D)H

A)A
B)D
C)G
D)H
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following is NOT a leaf in the tree below? <strong>Which of the following is NOT a leaf in the tree below?  </strong> A)F B)G C)H D)J

A)F
B)G
C)H
D)J
Unlock Deck
Unlock for access to all 70 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 70 flashcards in this deck.