Fibonacci Sequence - Discrete Structures - Exam, Exams of Discrete Structures and Graph Theory

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

2012/2013

Uploaded on 04/27/2013

ashay
ashay ๐Ÿ‡ฎ๐Ÿ‡ณ

4.1

(15)

196 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exam 2 CMSC 203 Discrete Structures Spring 2003
1. Circle T if the corresponding statement is True or F if it is False.
TFThe Fibonacci Sequence is {sn | sn = snโˆ’1 + snโˆ’2, with s0 = 1 and s1 = 1}.
TFThe First (Weak) and Second (Strong) Principles of Mathematical Induction are
logically equivalent.
TFAll recursively defined sequences of Integers take on successively larger values.
TFIf lazy students fail CMSC203 and Paul passed CMSC203, then we can
conclude logically that Paul is not lazy.
TFFunctions that are O(x2) grow faster than functions that are O(2x).
TFThe product of a Rational and an Irrational is always Irrational.
TFThe product of an Irrational and an Irrational is always Irrational.
TFFor every recursive algorithm, there is an equivalent iterative algorithm.
2. Circle V for Valid or I for Invalid with respect to the following arguments:
VI All dogs run fast and Zeke runs slow, therefore Zeke is not a dog.
VI All dogs run fast and Zeke is a dog, therefore Zeke runs fast.
VI All dogs run fast and Zeke is not a dog, therefore Zeke runs fast.
VI 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 + 2n, bn = (โˆ’1)n.
Find c0, c1, c2, and c3 when cn = (an)(bn).
4. Rank from 1 (least complex) to 10 (most complex) the complexity of algorithms
with the following orders:
Order n2nlognn!2
n1nn
nlogn10nn10
Rank
Find the Big-Oh of the algorithm with complexity: (n5 + 1)(n + n2) + (5n2 + 3n + 2)(n5).
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).
i3
i1=
n
โˆ‘n2n1+()
2
4
-------------------------=
Docsity.com

Partial preview of the text

Download Fibonacci Sequence - Discrete Structures - Exam and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

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:

Order n^2 n log n n! 2 n^ 1 n nn^ log n 10 n^ n^10

Rank

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

Docsity.com