
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:Oscillating Sequence, Recursive Algorithm, Real Numbers, Iterative Algorithm, Polynomial Order, Exponential Order, Costing Algorithms, Mathematical Induction, Summation Formulas, Relatively Prime, Division Algorithm
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

CMSC203 - Spring 2006 - Examination
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 Oscillating Sequence. T F A sequence is just another way to describe a function from the Real numbers to another set. T F A recursive algorithm can always be expressed equivalently as an iterative algorithm.
T F 10100 = 1 + 9(1 + 10 + 100 + ... + 10 99 ). T F Functions that are Polynomial order usually grow faster than those that are Exponential order. T F In costing algorithms, the sum of the orders equals the order of the largest term. T F Mathematical Induction is useful for finding new summation formulas. T F Integers that are Relatively Prime have the same Prime numbers as factors.
2. Let { an } be the sequence defined by: an = n^2 a ( n − 1). Find a 4 when a 0 = 2. 3. Fill in the Trace Table of the Division Algorithm when finding (27 DIV 4) and (27 MOD 4). 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^4 + n^2 )(3 n + n^4 ) + (2 n^3 + n^4 + 7)( n^3 ).
5. Use the Euclidean Algorithm to find GCD(99, 21). 6. Prove one of the two Theorems below using Mathematical Induction.
Theorem 2: If a 0 = a 1 = a 2 = 10, then an = a ( n − 1) + a ( n − 2) + a ( n − 3) is divisible by 10, for n > 2.
7. Prove one of the two Theorems below:
Theorem 1: If an Integer divides two other Integers, then it divides any linear combination of the two other Integers. (Definition: For any X and Y, ( a X + b Y) is a Linear Combination of X and Y, where a and b are arbitrary constants.)
Theorem 2: If a and b are odd Integers, then ( a^3 + b^3 ) is even.
8. Prove one of the two Theorems below by Contradiction.
Theorem 1: If 3 dividing the square of an Integer implies 3 divides the Integer, then is irrational. Theorem 2: No Prime number can divide both an Integer and the Integer’s successor.
a i i = 0
n
a n^ +^1 – 1 a – 1