
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This exam paper is very easy to understand and very helpful to built a concept about the foundation of computers and discrete structures.The key points in these exam are: Laws of Logic, Contrapositive Form, Big-O of Algorithm, Binary String, Matrix of Relation, Disjunctive Normal Form, Anti-Symmetric Relation, Boolean Polynomial, One-To-One Function, Theorems by Induction, Bijection Form
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

CMSC 203 Fall 2003 Final Examination Page 1 Name____________________________
2. Negate: For all Integers, n , if n is positive, then n^2 is positive. 3. Find the Contrapositive form of: Some people who are fast runners win races.
4. Find the Big-O of the algorithm with complexity:
(3 x^5 + 2 x^2 + 1)(4 x^2 + 1) + (5 x^4 + 3 x^2 + 7)(2 x^3 ). 5. What is the probability that a binary string of length 8 will have at least six 1’s? 6. How many ways can I fill a cooler with cans of soda if the cooler holds 30 cans, I have 8 different types of soda, and I want at least 2 of each type in the cooler?
7. Graph the relation R = {( a,b ) | a,b ∈ {0, 1, 2, 3, 4, 5, 6, 7} and b = ( a^2 mod 5)}. 8. Find the matrix of the relation R in Question 7. 9. Let f = {(1,3), (2,2), (3,4), (4,5), (5,1)}, g = {(1,5), (2,1), (3,4), (4,2), (5,3)}, and h = {(1,4), (2,5), (3,1), (4,2), (5,3)}. Find h o g o f. 10. Find the Disjunctive Normal Form of the Boolean polynomial F( w,x,y,z ) = w ’ xy ’ + z 11. Find the next 5 terms of s n = 2s n − 1 − 3s n − 2 when s 0 = (−1) and s 1 = 1.
12. How many ways can I line up 3 pennies, 5 nickels, 2 dimes, 8 quarters, and 6 half-dollars, if all the coins are from 1990? 13. Graph an example of a Reflexive and Anti-symmetric relation on the set {1, 2, 3, 4}. 14. Graph an example of a One-To-One function that is NOT Onto.
15. Prove one of the following theorems by Induction:
Theorem: For all Integers n > 0 and a ≠ 0,1,.
Theorem: A set with n elements has 2 n^ subsets.
16. Prove one of the following theorems by Contradiction:
Theorem: is irrational. Theorem: If every Integer greater than 1 is divisible by a prime, then the set of prime numbers is infinite.
17. Prove one of the following theorems:
Theorem: If f(x) = x^2 + 1, then S = {( x,y ) | x,y ∈ R and f(x) = f(y) } is an Equivalence Relation. Theorem: If g(x) = 3 x −2, then g is a Bijection from R to R.
a i i = 0
n
a n^ – 1 a – 1
= --------------
2
Docsity.com