
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:Fibonacci Sequence, Corresponding Statement, Principles of Mathematical Induction, Recursively Defined Sequences, Product of Irrational and Rational, Equivalent Iterative Algorithm, Complexity of Algorithms, Euclidean Algorithm
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Exam 2 CMSC 203 Discrete Structures Spring 2003
1. Circle T if the corresponding statement is True or F if it is False. T F The Fibonacci Sequence is { s (^) n | s (^) n = s (^) n โ 1 + sn โ 2 , with s 0 = 1 and s 1 = 1}.
T F The First (Weak) and Second (Strong) Principles of Mathematical Induction are logically equivalent. T F All recursively defined sequences of Integers take on successively larger values. T F If lazy students fail CMSC203 and Paul passed CMSC203, then we can conclude logically that Paul is not lazy.
T F Functions that are O( x^2 ) grow faster than functions that are O(2 x ). T F The product of a Rational and an Irrational is always Irrational. T F The product of an Irrational and an Irrational is always Irrational. T F For every recursive algorithm, there is an equivalent iterative algorithm.
2. Circle V for Valid or I for Invalid with respect to the following arguments: V I All dogs run fast and Zeke runs slow, therefore Zeke is not a dog. V I All dogs run fast and Zeke is a dog, therefore Zeke runs fast. V I All dogs run fast and Zeke is not a dog, therefore Zeke runs fast. V I All dogs run fast and Zeke runs fast, therefore Zeke is a dog. 3. Let { an } and { bn } be the sequences defined, for n > 0, by: an = n + 2 n , bn = (โ1) n. Find c 0 , c 1 , c 2 , and c 3 when c (^) n = ( an )( bn ). 4. Rank from 1 (least complex) to 10 (most complex) the complexity of algorithms with the following orders:
Find the Big-Oh of the algorithm with complexity: ( n^5 + 1)( n + n^2 ) + (5 n^2 + 3 n + 2)( n^5 ).
5. Use the Euclidean Algorithm to find GCD(688,124). 6. Prove one of the two Theorems below using Mathematical Induction.
Theorem 1: For all integers n > 1,.
Theorem 2: Every integer greater than 1 is divisible by a prime.
7. Use the Methods of Valid Arguments to obtain the indicated conclusion. Premises: Paul does not forfeit his scholarship and Paul goes to class. If Paul does not watch TV, then Paul gets good grades. If Paul watches TV or Paul does not do his homework, then Paul does not go to class. Paul does his homework or Paul forfeits his scholarship. Conclusion: Therefore, Paul gets good grades. 8. (20 points) Prove one of the two Theorems below by either Contradiction. Theorem 1: If every integer has a prime factorization, then the set of primes is infinite. Theorem 2: For all integers n and primes p , if p divides n , then p does not divide ( n + 1).
i 3
i = 1
n
n 2 ( n + 1 ) 2 4