Professional Documents
Culture Documents
Homework 5
Homework 5
Homework 5
Resolution exercise #5
LEVEL:
SECOND SEMESTER
SUBJECT:
DISCRETE MATHEMATICS
PARALLEL: “B”
STUDENT :
ROSALES LOOR AXEL ALEJANDRO.
TEACHER:
In problems 1-8 determine whether or not the corresponding graph contains an Eulerian circuit. If no
Eulerian circuit exists, determine whether the graph contains a change or not an Eulerian path and
construct one if it exists.
• PAGE 550. EXERCISES 1 TO 8 EULER AND HAMILTON
The graph does not have Eulerian circuits. The graph has an Eulerian path; a, e, c, e, b, e, d, b, a, c, d .
The graph does not have an Eulerian circuit. The
graph has an Eulerian path; c, e, a, f, e,d, c, b, d, a, b,
f
The graph does not have an Eulerian circuit. The graph has an Eulerian path; c, i, h, a, d,e, f, d, g,
i, b, a, i, d, c, b
16
minimum length =
16.
minimum length
=16
If it is a
tree
It's not a
tree
If it is a
tree
It's not a
tree
If it is a
tree
It's not a
tree
If it is a
tree
3. Answer the following questions regarding the rooted tree below.
Cardiology
Psycholog
y
3. How many comparisons are necessary to locate or add each of these words in
the search tree of Problem 1 starting from the beginning each time?
a) Pear
b) Banana
c) Kiwi
d) Nettle
Answers:
a) Pear (3)
b) Banana (1)
c) Kiwi (4)
d) Nettle (5)
4. How many comparisons are necessary to locate or add each of the words in
the search tree of Problem 2, starting from the beginning each time?
a) Paleontology
b) Etymology
c) Parapsychology
d) Glaciology
Answers:
a) Paleontology (1)
b) Etymology (4)
c) Parapsychology (2)
d) Glaciology (7)
5. Using alphabetical order, construct a binary search tree for the words in the
phrase “I suggest melted white cheese or a Manchego square cheese.”
• PAGE 614 AND 615, EXERCISES 37 AND 38. TREES DECISION GAME
37. Draw the subtree of the three-line game tree starting at each of the
following positions. Calculate the value of each of these subtrees.
This figure is impossible: This position cannot appear in any
game.
38. Suppose that the first four moves of a three-line game are those shown in a
figure. Does the first player, whose moves are represented by X, have any strategies
that allow him to always win?
x eith x x eith x
eith er
x x eith er
x
er eith eith
eith
er er er
x eith x x eith x
x er
eith x eith er
x eith
x er eith eith eith eith x
Or Win er er er er
Empathize
x eith x x
eith er
eith x x eith x
er er er
Tie Or win
x eith x eith
er er
x eith x x eith x
x er eith x eith er
eith eith
eith x eith xer eith
er xer
er er er
x eith x eith eith x
x er
x eith er
x er
x
eith er eith eith
er er er
x eith x eith eith x
eith xer eith xer xer eith
eith eith x eith x x
er
Tie er erTie
x d)
x eit
he
x x x
x eitheith x eith eith
eith x eith er
x er
x
er er
x x x x eith eith
x eit eith eith x
eith xher eith
er er Or Win
er
X Win er
x x eith
Tie er Or win