Professional Documents
Culture Documents
Discrete Mathematics
FINAL EXAM 2017–2018
Write your answers filling in the blanks. If for some reason (for example, if after you
have written the solution you realize that there is some mistake that you would like to
correct) you can attach an extra sheet to your exam. In this case, indicate clearly, that
the solution can be found in the extra sheet. Also, you may use other sheets to perform
your calculations. You can use the results we have seen in theory sessions without providing
a proof, unless it is requested.
Problem 1 1 point
Prove the sequent: Determine if each of the following statements is true or false
where the universe of discourse consists of all real numbers.
p ∨ ¬q ` ¬p → ¬q Justify your answer.
(a) The alleged proof is incorrect. For, both m and n de- By induction hypotehsis we know that f (k) ≥ 0. Further-
pend on the same arbitrary integer variable k (in fact, in the more, if k ≥ 3 then 2k ≥ 6 and, hence, 2k − 6 ≥ 0. Since the
proof, m and n are consecutive integers). Instead, two dif- sum of two nonnegative numbers is nonnegative it follows
ferent arbitrary integer variables k, and k 0 should have been that f (k + 1) ≥ 0.
considered.
Prove that there is a unique set A such that for every set B, • The proof, although it might have the shape of an in-
A ∪ B = B. duction proof, does not really use induction. Usually,
the student finds the roots f (n) and reasons from there
Solution: Let us prove the following proposition: like in calculus.
v1 v4 Problem 8 1 point:
For every n ≥ 3 let Gn be the graph with nodes
v2 v3
{c, v0 , v1 , . . . , vn−1 } that contains
Typical mistakes:
• The concept of connected component is exchan- (b) Indicate, for every n ≥ 3, which is the chromatic num-
ged with the concept of node/vertex or a graph. ber of Gn . Justify your answer.
• Assume that the 2 connected components are con-
(Note that in order to solve this problem you must unders-
nected with one another (thus, ignoring the fact
tand well the definition of graph Gn )
that the graph is a forest), and draw a tree as a
Solution:
solution.
For every n ≥ 3, if n is odd, then the cromatic number
(c) A cycle x0 , x1 , · · · , xk , x0 of a graph G is hamiltoni- of Gn is K = 4.
an if it contains all the vertices of G. Let x0 , · · · , x8 Otherwise, if n is even, then the cromatic number of Gn
denote the vertices of the bipartite graph, and let is K = 3.
x0 , x1 , · · · , x8 , x0 , be a hamiltonian cycle in G. No-
te that the cycle is of length 9. However, a bipartite
graph has by definition no cycles of odd length. The- Problem 9 1.5 points
refore, we conclude that such graph cannot exist. (Note: In this exercise, it is not necessary to compute the
result. Instead you can just give an arithmetic expression
Typical mistakes: such as for example 23! + 45!
12! )
9 9! 9!
(a) A company has 38 mathematicians, and 23 econo- number: 3,2,2,1,1 = 3!2!2!1!1! = 24 .
mists, and 17 computer scientists. How many ways
are there to select 12 members to serve on a committee Typical mistake:
if 3 must be mathematicians, 4 must be economists,
and the rest must be computer scientists. • To use permutation (9!) instead of multinomial
Solution: Since the order in which we take the peo- numbers, which menas that the fact that some
ple is not relevant and a person can not serve twice letters are repeated is not take into account.
as a member (no repetition), the problem is solved
through combination. The result is obtained by mul- (c) How many different words can be obtained from the
tiplying 38
3 (which corresponds to the ways to choose letters in AARKDBARK, using all the letters, if all
3 mathematicians out of 38), 23
4 (which corresponds the As must appear consecutively?
to the ways to choose 4 economists out of 23), and 17
5
Solution: Since all the As must appear consecutively,
(which corresponds to the ways 23to
choose 5 computer the solution is equal to the total number of ordering
scientists out of 17). So: 38 17 38!23!17!
3 · 4 · 5 = 3!35!4!19!5!12! .
the block AAA and the rest of the letters. This is:
using AAA once as a unique symbol, R and K twice,
Typical mistakes: and D and B also once. This equals to the number
of different permutations of 7 objects, where there is
• To use a wrong formula for the combinations. one AAA, 2 indistinguishable Rs and Ks, a D, and
• To sum de three individual elements instead of a B, computed by the following multinomial number:
7 7! 7!
multiplying them. 1,2,2,1,1 = 1!2!2!1!1! = 4 .
Typical mistakes:
(b) How many different words can be obtained from the
letters in AARKDBARK, using all the letters? • To use permutation (7!) instead of multinomial
Solution: The solution is equal to ordering the letters numbers, which menas that the fact that some
ARKDB by using A three times, R and K twice, letters are repeated is not take into account.
and D and B once. That is, the number of different • To use 9 positions instead of 7. Since AAA acts
permutations of 9 objects, where there are 3 indis- now as a single block, it is like having 7 symbols
tinguishable As, 2 indistinguishable Rs and Ks, a D (AAA, R, K, D, B, R, K) instead of 9.
and a B. This results in the following multinomial