Exercise Discrete Mathematics
Exercise Discrete Mathematics
Choose the right answer among A, B, C, and D and fill the blanks
(1) Which one is equivalent to p → q? ( )
A. ¬ p →¬ q. B. q →p. C. ¬ q → ¬ p. D. ¬ p ∧ q.
(2) Express the statement “There is no one who doesn’t make mistakes.” using
predicates and quantifiers where P(x) represents the statement that x is a person,
and Q(x) represents the statement that x makes mistakes. ( )
A.¬ x (P(x)∧¬ Q(x)) B. x (P(x)→Q(x))
C. x (P(x)∧¬ Q(x)) D. ¬x (P(x)→¬Q(x))
(3) Let A ={{a}} and its power set is P(A), which statement is true? ( )
A. {a}∈ P(A). B. a∈ P(A).
C. {{a}}∈ P(A). D. {{{a}}}∈ P(A).
(4) The relation R={(1,1),(2,2),(3,3),(4,3), (3,4)} on {1,2,3,4} is ( ).
A. reflexive B. symmetric
C. antisymmetric D. transitive
(5) Let A={1,2,3,4}.R={(1,2), (2,1), (1,1), (3,3), (2,2), (4,4) }is equivalence relation,
the equivalence classes of R are ( ).
A. [1], [2], [3], [4] . B. [1,2], [3,4].
C. [1], [2], [4]. D. [1], [3], [4].
A. A = B. B=
C. A⊂B D. A⊃B
(7) Let f be the function from {a,b,c,d} to {1,2,3} defined by f(a) = 3, f(b) = 2, f(c) = 1,
and f(d) = 3. f is ( )
A. one-to-one B. onto
C. invertible D. not one-to-one and not onto
(8) In how many ways can eight distinct books be divided among three students if Bill
gets four books and Shizuo and Marian each get two books? ( )
A. 420 B. 40320 C. 1680 D. 10080
1/4
(9) Consider the graph below. The number of different paths of length 2 from to
is ( ).
A. 4. B. 3. C. 2. D. 1.
(10) which graph has not Hamilton circuit? ( )
A. B.
D.
C.
3/4
conditions = 1 and = 6?
+ + + + + = 29,
a) > 1 for i = 1, 2, 3, 4, 5, 6?
b) ≥ 1, ≥ 2, ≥ 3, ≥ 4, > 5, and ≥ 6?
c) ≤ 5?
(5) Use Dijkstra's algorithm to find the shortest path from a to any other vertices.
(6) Use Kruskal’s algorithm to find a minimum spanning tree for the following
weighted graph.
4/4