Docsity

Solutions to Take Home Math 2534: Problems 1 and 2 - Prof. Margaret P. Mcquain, Exams of Discrete Mathematics

Toggle sidebar
bg1
Solutions for Take Home Math 2534
Problem 1: Given that -1
: , If F is one to one then F is well defined. FA B→
Proof: Assume that 1
F− is not well defined. Then there is at least value b in B so that
1
F−(b) = a1 and 1
F−(b) = a2. Therefore F(a1) = b and F(a2) = b. But this is not possible,
since F is one to one. Therefore 1
F
−
is well defined.
Problem 2:
TH: If f(n) = 2n + 2 and g(n) = 2n, for natural numbers n, then f(n) is Big O g(n)
Proof: First we will prove by PMI that () ()
f
ngn≤ and since f(n) and g(n) are always
positive we will drop the absolute values to get 2n + 2
≤
2n, for and 2nN n
∈
>
First we will verify that the hypothesis is true for n = 3 since 2(3) + 2
≤
23 and 8 ≤ 8.
We will now assume true up to some natural number k: ie. 2k + 2
≤
2k, and prove true
for k + 1: ie. 2(k+1) + 2 ≤ 2k+1.
Consider the k + 1 term, 2(k + 1) + 2 = (2k + 2 )+ 2
≤
(2k ) + 2
≤
2k + 2k = 2(2k) = 2k+1
Therefore we have shown that 2(k + 1) + 2
≤
2k+1 and the hypothesis is true for all
natural numbers greater than 2.
If we choose C = 1 and K = 2 we have that () ()
f
ngn≤ for all x > k = 2. This fits the
definition of the Big O notation and we have that f(n) is Big O g(n)

Partial preview of the text

Download Solutions to Take Home Math 2534: Problems 1 and 2 - Prof. Margaret P. Mcquain and more Exams Discrete Mathematics in PDF only on Docsity!

Solutions for Take Home Math 2534

Problem 1: Given that F : A → B , If F is one to one then F-1 is well defined.

Proof: Assume that F −^1 is not well defined. Then there is at least value b in B so that

F −^1 (b) = a 1 and^ F −^1 (b) = a

  1. Therefore F(a 1 ) = b and F(a^2 ) = b. But this is not possible, since F is one to one. Therefore F −^1 is well defined.

Problem 2: TH: If f(n) = 2n + 2 and g(n) = 2n^ , for natural numbers n, then f(n) is Big O g(n)

Proof: First we will prove by PMI that f ( ) n ≤ g n ( ) and since f(n) and g(n) are always

positive we will drop the absolute values to get 2n + 2 ≤ 2 n^ , for n ∈ N and n > 2

First we will verify that the hypothesis is true for n = 3 since 2(3) + 2 ≤ 23 and 8 ≤ 8.

We will now assume true up to some natural number k: ie. 2k + 2 ≤ 2 k^ , and prove true for k + 1: ie. 2(k+1) + 2 ≤ 2 k+^.

Consider the k + 1 term, 2(k + 1) + 2 = (2k + 2 )+ 2 ≤ (2 k^ ) + 2 ≤ 2 k^ + 2 k^ = 2(2 k^ ) = 2k+ Therefore we have shown that 2(k + 1) + 2 ≤ 2 k+1^ and the hypothesis is true for all natural numbers greater than 2.

If we choose C = 1 and K = 2 we have that f ( ) n ≤ g n ( ) for all x > k = 2. This fits the

definition of the Big O notation and we have that f(n) is Big O g(n)