Docsity

Spring 2004 CMSC 203 Final Examination: Logic, Algebra, and Number Theory, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CMSC 203 Spring 2004 Final Examination Page 1
1. Use the Laws of Logic to show: r โ†’ (ยฌq โ†’ ยฌp) โ‰ก p โ†’ (r โ†’ q)
2. Negate: There exists an Integer, n, such that n is prime and n is even.
3. Find the Contrapositive form of: All cars with fancy stereos are expensive.
4. Find the Big-O of the algorithm with complexity:
(4x5 + 8x2 + 2)(5x2 + 3) + (6x4 + 2x2 + 1)(12x2).
5. What is the probability that a binary string of length 8 will have no more than two 1โ€™s?
6. How many ways can I fill a cooler with cans of soda if the cooler holds 50 cans,
I have 6 different types of soda, and I want at least 5 of each type in the cooler?
7. Graph the relation R = {(a,b) | a,b โˆˆ {1, 2, 3, 4, 5, 6, 7} and b = [(a2 + 2) mod 4]}.
8. Find the MR o MR of the relation on {1, 2, 3, 4}:
R = {(1,3), (1,4), (2,2), (2,4), (3,1), (3,2), (3,3), (4,1), (4,2), (4,3)}
9. Let f = {(1,4), (2,1), (3,3), (4,5), (5,2)}, g = {(1,2), (2,4), (3,1), (4,3), (5,5)},
and h = {(1,5), (2,3), (3,1), (4,2), (5,4)}. Find h o g o f.
10. Find the Disjunctive Normal Form of the Boolean Expression that describes a 3-way light
switch controlling a lightbulb that includes the case of being ON when all three switches are ON.
11. Find the next 5 terms of sn = 4snโˆ’1 โˆ’ 3snโˆ’2 when s0 = (โˆ’1) and s1 = 0.
12. How many ways can I line up 4 Pennies, 3 Nickels, 6 Dimes, 2 Quarters, and 3 Half-dollars,
if all the coins are from 1990? (e.g. PNPNDDQPNDHDDQHHDP)
13. Graph an example of a Reflexive and Symmetric relation on the set {1, 2, 3, 4}.
14. Graph an example of an Onto function that is NOT One-To-One.
15. Prove one of the following theorems by Induction:
Theorem: For all Integers n > 0 and a โ‰  0,1, .
Theorem: Every integer greater than 1 is divisible by a prime number.
16. Prove one of the following theorems by Contradiction:
Theorem: is irrational.
Theorem: The sum of a rational and an irrational number is irrational.
17. Prove one of the following theorems:
Theorem: If f(x) = 5x + 7, then R = {(x,y) | x,y โˆˆ R and f(x) = f(y)} is an Equivalence Relation.
Theorem: If f(x) = 5x + 7, then f is a Bijection from R to R.
ai
i0=
n
โˆ‘an1+ 1โ€“
a1โ€“
---------------------=
2
Docsity.com

Partial preview of the text

Download Spring 2004 CMSC 203 Final Examination: Logic, Algebra, and Number Theory and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

CMSC 203 Spring 2004 Final Examination Page 1

1. Use the Laws of Logic to show: r โ†’ (ยฌ q โ†’ ยฌ p ) โ‰ก p โ†’ ( r โ†’ q )

2. Negate: There exists an Integer, n , such that n is prime and n is even. 3. Find the Contrapositive form of: All cars with fancy stereos are expensive.

4. Find the Big-O of the algorithm with complexity:

(4 x^5 + 8 x^2 + 2)(5 x^2 + 3) + (6 x^4 + 2 x^2 + 1)(12 x^2 ). 5. What is the probability that a binary string of length 8 will have no more than two 1โ€™s? 6. How many ways can I fill a cooler with cans of soda if the cooler holds 50 cans, I have 6 different types of soda, and I want at least 5 of each type in the cooler?

7. Graph the relation R = {( a,b ) | a,b โˆˆ {1, 2, 3, 4, 5, 6, 7} and b = [( a^2 + 2) mod 4]}.

8. Find the M R o M R of the relation on {1, 2, 3, 4}:

R = {(1,3), (1,4), (2,2), (2,4), (3,1), (3,2), (3,3), (4,1), (4,2), (4,3)}

9. Let f = {(1,4), (2,1), (3,3), (4,5), (5,2)}, g = {(1,2), (2,4), (3,1), (4,3), (5,5)}, and h = {(1,5), (2,3), (3,1), (4,2), (5,4)}. Find h o g o f.

10. Find the Disjunctive Normal Form of the Boolean Expression that describes a 3-way light switch controlling a lightbulb that includes the case of being ON when all three switches are ON. 11. Find the next 5 terms of s n = 4s n โˆ’ 1 โˆ’ 3s n โˆ’ 2 when s 0 = (โˆ’1) and s 1 = 0.

12. How many ways can I line up 4 Pennies, 3 Nickels, 6 Dimes, 2 Quarters, and 3 Half-dollars, if all the coins are from 1990? (e.g. PNPNDDQPNDHDDQHHDP) 13. Graph an example of a Reflexive and Symmetric relation on the set {1, 2, 3, 4}. 14. Graph an example of an Onto function that is NOT One-To-One. 15. Prove one of the following theorems by Induction:

Theorem: For all Integers n > 0 and a โ‰  0,1,.

Theorem: Every integer greater than 1 is divisible by a prime number.

16. Prove one of the following theorems by Contradiction:

Theorem: is irrational. Theorem: The sum of a rational and an irrational number is irrational.

17. Prove one of the following theorems: Theorem: If f(x) = 5 x + 7, then R = {( x,y ) | x,y โˆˆ R and f(x) = f(y) } is an Equivalence Relation. Theorem: If f(x) = 5 x + 7, then f is a Bijection from R to R.

a i i = 0

n

a n^ +^1 โ€“ 1 a โ€“ 1

= ---------------------

2

Docsity.com