Alternating 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:Alternating Sequence, Efficient in Memory, Recursive Algorithm, Exponential Order, Fibonacci Sequence, Polynomial Order, Linear Search Algorithms, Euclidean Algorithm, Costing Algorithms, Principle of Mathematical Induction

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
SAMPLE Exam 2 - Fall 2006 - Discrete Structures
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 Principle of Mathematical Induction can be used to discover new theorems.
TFA recursive algorithm is generally more efficient in memory than its equivalent
iterative version.
TF3 + 6 + 9 + 12 + ... + 300 = 15150.
TFAlgorithms that are Exponential order grow faster than ones that are Polynomial order.
TFIn costing algorithms, the sum of the orders equals the maximum order.
TFThe Fibonacci sequence only requires one initial condition.
TFIn general, Linear Search algorithms are less efficient than Binary Search algorithms.
2. Let {an} and {bn} be the sequences defined, for n > 0, by:
an = n โˆ’ 2, and bn = 3n + 1. Find c0, c1, c2, and c3 when cn = (an + bn).
3. Given positive integer inputs, A and B, write out in pseudocode the algorithm to
calculate (A MOD B) and (A DIV B). You may assume B < A.
4. (a) Rank from 1 (least complex) to 5 (most complex) the following orders:
___ 10n ___ n2___ n ___ nn___ n10
(b) Find the Big-Oh of the algorithm with complexity: (n6 + 1)(2n2 + 3n) + (n3 + 5n2 + 2)(n3).
5. Use the Euclidean Algorithm to find GCD(100, 22).
6. Prove one of the two Theorems below using Mathematical Induction.
Theorem 1: For all integers n > 0 and a โ‰  0,1, .
Theorem 2: If a0 = 0 and a1 = 100, then an = anโˆ’1 + anโˆ’2 is divisible by 100.
7. Prove one of the two Theorems below:
Theorem 1: The product of odd integers is odd.
Theorem 2: If (a MOD p) = (b MOD p), then p divides (a โˆ’ b).
8. Prove one of the two Theorems below by Contradiction.
Theorem 1: is irrational.
Theorem 2: There does not exist a largest integer.
ai
i0=
n
โˆ‘an1+ 1โ€“
a1โ€“
-------------------=
2
Docsity.com

Partial preview of the text

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

SAMPLE Exam 2 - Fall 2006 - Discrete Structures

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 Principle of Mathematical Induction can be used to discover new theorems. T F A recursive algorithm is generally more efficient in memory than its equivalent iterative version. T F 3 + 6 + 9 + 12 + ... + 300 = 15150. T F Algorithms that are Exponential order grow faster than ones that are Polynomial order. T F In costing algorithms, the sum of the orders equals the maximum order. T F The Fibonacci sequence only requires one initial condition. T F In general, Linear Search algorithms are less efficient than Binary Search algorithms. 2. Let { an } and { bn } be the sequences defined, for n > 0, by:

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

3. Given positive integer inputs, A and B, write out in pseudocode the algorithm to calculate (A MOD B) and (A DIV B). You may assume B < A. 4. (a) Rank from 1 (least complex) to 5 (most complex) the following orders:

___ 10 n^ ___ n^2 ___ n ___ nn^ ___ n^10

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

5. Use the Euclidean Algorithm to find GCD(100, 22). 6. Prove one of the two Theorems below using Mathematical Induction.

Theorem 1: For all integers n > 0 and a โ‰  0,1,.

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

7. Prove one of the two Theorems below:

Theorem 1: The product of odd integers is odd.

Theorem 2: If ( a MOD p ) = ( b MOD p ), then p divides ( a โˆ’ b ).

8. Prove one of the two Theorems below by Contradiction.

Theorem 1: is irrational.

Theorem 2: There does not exist a largest integer.

a i

i = 0

n

a n + 1

  • 1 a โ€“ 1

Docsity.com