Discrete Mathematics Sample Exam Questions, Study notes of Discrete Mathematics

Sample exam questions for a discrete mathematics course, covering topics such as logic, set theory, relations, functions, number theory, recurrence relations, graph theory, and trees. It includes questions on truth tables, negation of sentences, properties of relations, equivalence relations, yield functions, functions between sets, prime numbers, the euclidean algorithm, linear recurrence relations, graph theory, and spanning trees.

Typology: Study notes

2021/2022

Uploaded on 08/05/2022

jacqueline_nel
jacqueline_nel 🇧🇪

4.4

(242)

3.2K documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DISCRETE MATHEMATICS - SAMPLE EXAM QUESTIONS
1. Using truth tables decide whether each of the following is a tautology:
(a) (pq)(qp),
(b) (pq)(pq),
(c) (pq)(pq),
(d) ((pq)r)((pr)(qr)).
2. For each of the following sentences, negate the sentence, and say whether the sentence or
its negation is true:
(a) xZ,yZ,(x>y)(x6=y),
(b) xZ,yZ,zZ, z2=x2+y2.
3. Let A={1,2,3}. For each of the following relations decide if it is symmetric, transitive
or reflexive
(a) R={(1,1),(2,2),(2,1),(1,2)},
(b) R={(1,1),(2,2),(3,3),(1,2)}.
4. For each of the following relations Ron Z, determine whether the relation is reflexive,
symmetric or transitive, and specify the equivalence classes if Ris an equivalence relation
on Z:
(a) (a, b) R if adivides b,
(b) (a, b) R if a2=b2.
5. Let A={1,2,4,5,7,11,13}. Define a relation Ron Aby writing (x, y) R if and only if
xyis a multiple of 3.
(a) Show that Ris an equivalence relation on A.
(b) How many equivalence classes of Rare there?
6. Find whether the following yield functions from Nto N, and if so, whether they are one-
to-one, onto or both. Find also the inverse function if the function is one-to-one and onto:
(a) y=x2,
(b) y=
x+ 1,if xis odd,
x1,if xis even,
.
7. Suppose that the set Acontains 5 elements and the set Bcontains 2 elements.
(a) How many different functions f:ABcan one define?
(b) How many of the functions in part (a) are not onto?
(c) How many of the functions in part (a) are not one-to-one?
8. Suppose that the set Acontains 2 elements and the set Bcontains 5 elements.
(a) How many of the functions f:ABare not onto?
(b) How many of the functions f:ABare not one-to-one?
9. Suppose that aNand bZ. Proof that there exist unique q, r Zsuch that b=aq +r
and 0 ¬r < a.
pf2

Partial preview of the text

Download Discrete Mathematics Sample Exam Questions and more Study notes Discrete Mathematics in PDF only on Docsity!

DISCRETE MATHEMATICS - SAMPLE EXAM QUESTIONS

  1. Using truth tables decide whether each of the following is a tautology: (a) ( p → q ) ( q → p ), (b) ( p → q ) ( p ∧ q ),

(c) ( p ∨ q ) ( p ∧ q ), (d) (( p ∨ q ) ∧ r ) (( p ∧ r ) ( q ∧ r )).

  1. For each of the following sentences, negate the sentence, and say whether the sentence or its negation is true: (a) ∀x ∈ Z , ∀y ∈ Z , ( x > y ) ( x 6 = y ), (b) ∀x ∈ Z , ∀y ∈ Z , ∃z ∈ Z , z^2 = x^2 + y^2.
  2. Let A = { 1 , 2 , 3 }. For each of the following relations decide if it is symmetric, transitive or reflexive (a) R = { (1 , 1) , (2 , 2) , (2 , 1) , (1 , 2) } , (b) R = { (1 , 1) , (2 , 2) , (3 , 3) , (1 , 2) }.
  3. For each of the following relations R on Z, determine whether the relation is reflexive, symmetric or transitive, and specify the equivalence classes if R is an equivalence relation on Z: (a) ( a, b ) ∈ R if a divides b , (b) ( a, b ) ∈ R if a^2 = b^2.
  4. Let A = { 1 , 2 , 4 , 5 , 7 , 11 , 13 }. Define a relation R on A by writing ( x, y ) ∈ R if and only if x − y is a multiple of 3. (a) Show that R is an equivalence relation on A. (b) How many equivalence classes of R are there?
  5. Find whether the following yield functions from N to N, and if so, whether they are one- to-one, onto or both. Find also the inverse function if the function is one-to-one and onto: (a) y = x^2 , (b) y =

 

x + 1 , if x is odd , x − 1 , if x is even ,^.

  1. Suppose that the set A contains 5 elements and the set B contains 2 elements. (a) How many different functions f : A ← B can one define? (b) How many of the functions in part (a) are not onto? (c) How many of the functions in part (a) are not one-to-one?
  2. Suppose that the set A contains 2 elements and the set B contains 5 elements. (a) How many of the functions f : A ← B are not onto? (b) How many of the functions f : A ← B are not one-to-one?
  3. Suppose that a ∈ N and b ∈ Z. Proof that there exist unique q, r ∈ Z such that b = aq + r and 0 ¬ r < a.
  1. Suppose that, a, b ∈ N and that p ∈ N is a prime. Proof that if p|ab , then p|a or p|b.
  2. Find (210 , 858). Determine integers x and y such that (210 , 858) = 210 x + 858 y. Hence give the general solution of the equation in integers x and y.
  3. Calculate the number of distinct natural numbers not exceeding 1000 which are multiples of 10, 15, 35 or 55.
  4. Find the solution of the non-homogeneous linear recurrence an +2 6 an +1 7 an = 12 n^2 4 n + 10 that satisfies the initial conditions a 0 = 0, a 1 = 10.
  5. Find the solution of the non-homogeneous linear recurrence an +2 6 an +1 7 an = 16( 1) n that satisfies the initial conditions a 0 = 4, a 1 = 2.
  6. Show that the number of odd vertices in a graf is even.
  7. How many edges does the complete graph Kn have?
  8. How many edges does the wheel graph Wn have?
  9. Find the valency of any vertex in the wheel graph Wn , the cycle graph Cn and the complete graph Kn.
  10. Find Hamiltonian and Eulerian walks in the graph: 1 2 3

4 5 6

7

  1. Suppose that T ( V, E ) is a tree. Show that |E| = |V | − 1.
  2. Draw the six non-isomorphic trees with 6 vertices.
  3. Find one of the spanning tree in the graph: 1 2 3
  1. Find the adjacency and the reachability matrices of the digraph: 1 2 3