
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!

Exam 2 Spring 2005 CMSC 203 Discrete Structures
1. Circle T if the corresponding statement is True or F if it is False. T F The sequence {1, 4, 5, 9, 14, 23, 37,...} satisfies the Fibonacci relation. T F The First (Weak) and Second (Strong) Principles of Mathematical Induction are logically equivalent. T F A recursive algorithm is one which refers to itself. T F 2 + 4 + 6 + 8 + ... + 200 = 10010.
T F Functions that are O( x^10 ) grow faster than functions that are O(2 x^ ).
T F
T F In general, Linear Search algorithms are faster than Binary Search algorithms. T F The Euclidean Algorithm can be expressed as both an interative and a recursive algorithm.
2. Let { a (^) n } and { bn } be the sequences defined, for n > 0, by:
an = n^2 + 2, and bn = (ā1)( n +1). Find c 0 , c 1 , c 2 , and c 3 when c (^) n = ( an )( bn ).
3. Trace the Division Algorithm to find (37 DIV 12) and (37 MOD 12). 4. (a) Rank from 1 (least complex) to 10 (most complex) the complexity of algorithms with the following orders:
(b) Find the Big-Oh of the algorithm with complexity: ( n^7 + 1)(3 n + n^3 ) + (4 n^2 + 2 n^3 + 6)( n^6 ).
5. Use the Euclidean Algorithm to find GCD(1060,160). 6. Prove one of the two Theorems below using Mathematical Induction.
Theorem 2: If a 0 = 2 and a 1 = 4, then an = an ā 1 + a (^) n ā 2 is divisible by 2.
7. Prove one of the two Theorems below: Theorem 1: The difference of the squares of an integer and its predecessor is odd. Theorem 2: If a and b are Integers with a < b , then there is a Rational, q , such that a < q < b. 8. Prove one of the two Theorems below by Contradiction. Theorem 1: The sum of any rational number and any irrational number is irrational. Theorem 2: For all Naturals n and primes p , if p divides n , then p does not divide ( n + 1).
( ca (^) i + b (^) i ) i = 0
n
i = 0
n
i = 0
n
i 3
i = 1
n
n 2 ( n + 1 ) 2
4