
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CMSC 203 Spring 2004 Final Examination Page 1
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]}.
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