
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
The fall 2010 exam for cmsc 203, a university-level course on algorithms and number theory. The exam includes multiple-choice questions covering topics such as the euclidean algorithm, mathematical induction, and binary search. Students are asked to identify true or false statements, find the greatest common divisor (gcd) of two numbers, apply the binary search algorithm, and find the next terms of a sequence. The document also includes procedures for the euclidean algorithm and inductive definitions.
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Exam 2 CMSC 203 Fall 2010
T F 1 + 2 + 2^2 + 2^3 + 2^4 + ... + 2^9999 = 2^10000 โ 1. T F Algorithms with O( n ) are less efficient than those with O(log n ). T F The Principle of Mathematical Induction is useful for discovering new Mathematical theorems. T F GCD(10,000,000, 9,999,998) = 2.
conditions, a 0 = 0 and a 1 = 1.
Theorem 1: For all Natural numbers n ,.
Theorem 2: If a 0 = 5, a 1 = 10, and a 2 = 15, then an = an โ 1 + 2 an โ 2 + 3 an โ 3 is divisible by 5,
for all n > 3.
Theorem 1: For all Integers, n, if n^2 is even, then n^2 is divisible by 4. Theorem 2: If a and b are Integers with a < b , then there is a Rational, q , such that a < q < b.
i^2 i = 0
n
n n ( + 1 ) ( 2 n + 1 ) 6 = -----------------------------------------