Weak and Strong Principles - 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:Weak and Strong Principles, Mathematical Induction, Alternating Sequence, Iterative Algorithms, Recursive Representations, Euclidean Algorithm, Recursive Definition, Big-Oh of Algorithm, Binary Search Algorithm

Typology: Exams

2012/2013

Uploaded on 04/27/2013

ashakiran
ashakiran ๐Ÿ‡ฎ๐Ÿ‡ณ

4.5

(27)

261 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exam 2 - Discrete Structures - Spring 2008
1. Circle T if the corresponding statement is True or F if it is False.
TFThe sequence {1, โˆ’1, 1, โˆ’1, 1, โˆ’1 ...} is an example of an Alternating sequence.
TFThe Weak and Strong Principles of Mathematical Induction are logically equivalent.
TFIn general, iterative algorithms use memory more efficiently than their equivalent
recursive representations.
TF1 + 10 + 100 + 1000 + ... + 10n = 10(n + 1) โˆ’ 1.
TF2 + 4 + 6 + 8 + 10 + ... + 2,000 = 1,001,000.
TFAlgorithms whose order is O(n2) are less efficient than those of order O(2n).
TFIf the set A contains the element x, then half the subsets of A contain x.
TFLCM( p,q)GCD( p,q) = pq.
2. Let {an} and {bn} be the sequences defined, for n > 0, by:
an = (n โˆ’ 1), and bn = (n + 1). Find c1, c2, c3, and c4 when cn = (an)(bn).
3. Write out the Euclidean Algorithm and trace its steps to calculate GCD(21,4).
4. (a) Give a Recursive Definition for the odd integers.
(b) Find the Big-Oh of the algorithm with complexity: (n2 + 1)(4n3 + 5) + [2n4 + n(log n)](3n2).
5. (a) Given a = 22335577119131117131915231729193121. and b = 21325478111613321764191282325629512311024,
GCD(a,b) = ___________________ LCM(a,b) = __________________________.
(b) List out the search intervals in applying the Binary Search algorithm to find 7 in the list:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
(Hint: Include the mid/test point with the lower interval.)
6. Prove one of the two Theorems below using Mathematical Induction.
Theorem 1: For all integers n > 0, .
Theorem 2: If a0 = 0, a1 = 10, and a2 = 20, then an = anโˆ’1 + anโˆ’2 + anโˆ’3 is divisible by 10,
for all n > 3.
7. Prove one of the two Theorems below:
Theorem 1: If a, b, p, and r are Integers with a = bq + r, then GCD(a,b) = GCD(b,r).
Theorem 2: The product of odd integers is odd.
8. Prove one of the two Theorems below by Contradiction or Contraposition.
Theorem 1: is irrational.
Theorem 2: The Prime numbers form an infinite set.
3i
i0=
n
โˆ‘3n1+ 1โ€“
2
---------------------=
2
Docsity.com

Partial preview of the text

Download Weak and Strong Principles - Discrete Structures - Exam and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

Exam 2 - Discrete Structures - Spring 2008

1. Circle T if the corresponding statement is True or F if it is False. T F The sequence {1, โˆ’1, 1, โˆ’1, 1, โˆ’1 ...} is an example of an Alternating sequence. T F The Weak and Strong Principles of Mathematical Induction are logically equivalent. T F In general, iterative algorithms use memory more efficiently than their equivalent recursive representations.

T F 1 + 10 + 100 + 1000 + ... + 10 n^ = 10( n^ + 1)^ โˆ’ 1. T F 2 + 4 + 6 + 8 + 10 + ... + 2,000 = 1,001,000.

T F Algorithms whose order is O( n^2 ) are less efficient than those of order O(2 n ). T F If the set A contains the element x , then half the subsets of A contain x. T F LCM( p,q )GCD( p,q ) = pq.

2. Let { an } and { bn } be the sequences defined, for n > 0, by:

an = ( n โˆ’ 1), and bn = ( n + 1). Find c 1 , c 2 , c 3 , and c 4 when c (^) n = ( an )( bn ).

3. Write out the Euclidean Algorithm and trace its steps to calculate GCD(21,4). 4. (a) Give a Recursive Definition for the odd integers.

(b) Find the Big-Oh of the algorithm with complexity: ( n^2 + 1)(4 n^3 + 5) + [2 n^4 + n (log n )](3 n^2 ).

5. (a) Given a = 2^2 335577119131117131915231729193121. and b = 2^1325478111613321764191282325629512 311024 , GCD( a,b ) = ___________________ LCM( a,b ) = __________________________.

(b) List out the search intervals in applying the Binary Search algorithm to find 7 in the list: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 (Hint: Include the mid/test point with the lower interval.)

6. Prove one of the two Theorems below using Mathematical Induction.

Theorem 1: For all integers n > 0,.

Theorem 2: If a 0 = 0, a 1 = 10, and a 2 = 20, then an = an โˆ’ 1 + an โˆ’ 2 + a (^) n โˆ’ 3 is divisible by 10,

for all n > 3.

7. Prove one of the two Theorems below: Theorem 1: If a , b , p , and r are Integers with a = bq + r , then GCD( a,b ) = GCD( b,r ). Theorem 2: The product of odd integers is odd. 8. Prove one of the two Theorems below by Contradiction or Contraposition.

Theorem 1: is irrational. Theorem 2: The Prime numbers form an infinite set.

i

i = 0

n

n + 1

  • 1 2

Docsity.com