Docsity

CMSC 203 Discrete Structures Final Exam - Spring 2008, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CMSC 203 - Discrete Structures - FINAL EXAMIMATION - Spring 2008
1. (a) Use the Laws of Logic to show: q ∨ ¬ (r → p) ≡ (q ∨ r) ∧ (p → q)
(b) Find the negation of the following Universal Conditional:
All people who like Mathematics get good jobs.
(c) Use the rules of inference to show the following is a valid argument:
p → q r ∧ ¬q p r → s ∴ s
2. (a) Find A × B for the sets A = {x, y} and B = {1, 2, 3}
(b) Using the Properties of Sets, show for any sets A, B and C, (A − B) − C = (A − C) − B.
3. (a) For F = {(b,g), (d,d), (g,a), (n,b), (r,b)}, what Domain and Image make F a function?
(b) Why or why not is the inverse in (a) a function?
(c) Find F(G(x)) for the following Real-valued functions: F(x) = 2(x+1) and G(x) = x − 2.
4. (a) Use the Euclidean Algorithm to find GCD(164, 78).
(b) Find Big-O of the algorithm whose complexity is F(n) = (2n5)(n7 + 5n5)(n4 + 2n + 1).
5. Prove 1 of the 2 Theorems below:
Theorem 1: The function f: R → R given by f(x) = π(x + e) is a bijection.
Theorem 2: The square root of 3 is irrational. (Assume: If 3 divides INT2 then 3 divides INT)
6. (a) Find the next 3 terms of the sequence sn = 3sn-1 − 2sn-2 when s0 = 1 and s1 = 0.
(b) Find an expression for the series:
7. Prove 1 of the 2 Theorems that follow by Mathematical Induction.
Theorem 1: (1 + 2 + 3 + 4 + ... + n) = [n(n + 1)] / 2.
Theorem 2: Is sn = sn-1 + sn-2 + sn-3 + sn-4 when s0 = s1 = s2 = s3 = 2 then sn is even, for all n > 4.
8. (a) A restaurant serves 5 soups, 5 salads, 20 entrees, 5 desserts, and 10 beverages. How many dinners
can they create if each dinner consists of a soup or salad, an entree, and a dessert or
beverage?
(b) How many binary strings of length 16 have no more than 3 zeros?
(c) How many ways can judges award 1st, 2nd, and 3rd Place prizes to 25 contestants?
(d) How many distinct piles of 100 coins (pennies, nickels, dimes, quarters, half-dollars, and dollars)
can I create from a vast quantity of coins, if I must have at least 10 of each in its pile?
4i2i–
i1=
100
∑
Docsity.com
pf2

Partial preview of the text

Download CMSC 203 Discrete Structures Final Exam - Spring 2008 and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

CMSC 203 - Discrete Structures - FINAL EXAMIMATION - Spring 2008

1. (a) Use the Laws of Logic to show: q ∨ ¬ ( r → p ) ≡ ( q ∨ r ) ∧ ( p → q )

(b) Find the negation of the following Universal Conditional: All people who like Mathematics get good jobs. (c) Use the rules of inference to show the following is a valid argument:

p → q r ∧ ¬ q p r → s ∴ s

2. (a) Find A × B for the sets A = { x, y } and B = {1, 2, 3} (b) Using the Properties of Sets, show for any sets A, B and C, (A − B) − C = (A − C) − B. 3. (a) For F = {(b,g), (d,d), (g,a), (n,b), (r,b)}, what Domain and Image make F a function? (b) Why or why not is the inverse in (a) a function?

(c) Find F(G(x)) for the following Real-valued functions: F( x ) = 2 ( x +1)^ and G( x ) = x − 2.

4. (a) Use the Euclidean Algorithm to find GCD(164, 78).

(b) Find Big-O of the algorithm whose complexity is F( n ) = (2 n^5 )( n^7 + 5 n^5 )( n^4 + 2 n + 1).

5. Prove 1 of the 2 Theorems below: Theorem 1: The function f : R → R given by f ( x ) = π( x + e) is a bijection.

Theorem 2: The square root of 3 is irrational. (Assume: If 3 divides INT 2 then 3 divides INT)

6. (a) Find the next 3 terms of the sequence sn = 3 sn -1 − 2 s (^) n -2 when s 0 = 1 and s 1 = 0.

(b) Find an expression for the series:

7. Prove 1 of the 2 Theorems that follow by Mathematical Induction. Theorem 1: (1 + 2 + 3 + 4 + ... + n ) = [ n ( n + 1)] / 2. Theorem 2: Is sn = s (^) n -1 + sn -2 + sn -3 + s (^) n -4 when s 0 = s 1 = s 2 = s 3 = 2 then sn is even, for all n > 4. 8. (a) A restaurant serves 5 soups, 5 salads, 20 entrees, 5 desserts, and 10 beverages. How many dinners can they create if each dinner consists of a soup or salad, an entree, and a dessert or beverage? (b) How many binary strings of length 16 have no more than 3 zeros? (c) How many ways can judges award 1st, 2nd, and 3rd Place prizes to 25 contestants? (d) How many distinct piles of 100 coins (pennies, nickels, dimes, quarters, half-dollars, and dollars) can I create from a vast quantity of coins, if I must have at least 10 of each in its pile?

4 i^ – 2 i i = 1

100

Docsity.com

CMSC 203 - Discrete Structures - FINAL EXAMIMATION - Spring 2008

9. Consider the following sets with corresponding number of elements indicated in each region:

(a) Find P(B ∪ C) (b) Find P(A | (B ∩ C))

10. (a) Find the inverse relation to R = {(1,2),(1,3),(2,3),(3,1),(3,2),(3,3),(3,4),(4,1),(4,2),(5,2),(5,4)}

R−^1 = ___________________________________________________________________

(b) Show that the relation S = {( a,b ) | a,b are Real and Ceiling( a ) = Ceiling( b )} is an Equivalence Relation.

(c) Given S = {0,1}, what partition of Σ^3 does R = {( s,t ) | s,t ∈ Σ^3 and d( s ) = d( t )} induce?

11. (a) Find the truth table of the Boolean Polynomial F( x,y,z ) = xy + ( z’ )

(b) Find the Disjunctive Normal Form of the polynomial in (a).

A (^) B

C

U

Docsity.com