Docsity

Inverse Function - Discrete Mathematics - Homework, Slides of Discrete Mathematics

Toggle sidebar
bg1
CS173: Discrete Mathematical Structures
Spring 2006
Homework #4
Due Sun 02/12/06, 8AM.
1) Let S be the set of all UIUC CS students and C the set of all courses offered in
Department of Computer Science for spring 2006.
a) For
x
∈Sand y∈C, we say y
=
f(x)if and only if student x has registered course
y. Does f:S→Cdefine a function? Why or why not?
b) For
x
∈Sand y∈P
C (P
Cis the power set of C), we say y
=
f(x) if and only if
student x has registered every course in set y. Does f:S→P
Cdefine a function?
Why or why not?
c) For
x
∈Sand y∈P
C (
P
Cis the power set of C), we say y
=
f(x) if and only if
student x has registered for every course in set y and for no course in set
Cāˆ’y.
Does f:S→P
Cdefine a function? Why or why not?
2) Which of the followings are functions from the domain to the codomain given?
Which functions are one-to-one? Which functions are onto? If it is a bijection,
describe its inverse function.
a) f:Z→Zwhere f is defined by f(x)=x2
b) f:Z→Rwhere f is defined by f(x)=x
c) f:R+→R+where f is defined by f(x)
=
log(x
+
1)
d) f:Z→Nwhere f is defined by f(x)=x
x
e) f:RƗRƗR→R+∪{0}where f is defined by f(x,y,z)=x2+y2+z2
f) f:RƗR→RƗRwhere f is defined by f(x,y)
=
(x
+
1, y
+
1)
3) Let f:S→Tand
g
:
T
→
U
be functions.
a) Prove that if
gfis one-to-one, so is f.
b) Find an example where gfis one-to-one but g is not one-to-one.
4) The Growth of Functions
a) Show that
x
3is
O(x4)but that
x
4is not O(x3).
b) Give as good a big-O estimate as possible for each of the following (A formal
proof is not required, but give your reasoning):
Docsity.com
pf2

Partial preview of the text

Download Inverse Function - Discrete Mathematics - Homework and more Slides Discrete Mathematics in PDF only on Docsity!

CS173: Discrete Mathematical Structures

Spring 2006

Homework

Due Sun 02/12/06, 8AM.

  1. Let S be the set of all UIUC CS students and C the set of all courses offered in Department of Computer Science for spring 2006.

a) For x ∈ S and y ∈ C , we say y = f ( x ) if and only if student x has registered course y. Does f : S → C define a function? Why or why not? b) For x ∈ S and y ∈ PC ( PC is the power set of C ), we say y = f ( x ) if and only if student x has registered every course in set y. Does f : S → PC define a function? Why or why not? c) For x ∈ S and y ∈ PC ( PC is the power set of C ), we say y = f ( x ) if and only if student x has registered for every course in set y and for no course in set C āˆ’ y. Does f : S → PC define a function? Why or why not?

  1. Which of the followings are functions from the domain to the codomain given? Which functions are one-to-one? Which functions are onto? If it is a bijection, describe its inverse function.

a) f : Z → Z where f is defined by f ( x ) = x^2 b) f : Z → R where f is defined by f ( x ) = x c) f : R+^ → R+^ where f is defined by f ( x ) = log( x + 1) d) f : Z → N where f is defined by f ( x ) = x x e) f : RƗ RƗ R → R+^ ∪{0} where f is defined by f ( x , y , z ) = x^2 + y^2 + z^2 f) f : RƗ R → RƗ R where f is defined by f ( x , y ) = ( x + 1, y + 1)

  1. Let f : S → T and g : T → U be functions. a) Prove that if g D f is one-to-one, so is f. b) Find an example where g D f is one-to-one but g is not one-to-one.

  2. The Growth of Functions a) Show that x^3 is O ( x^4 ) but that x^4 is not O ( x^3 ). b) Give as good a big- O estimate as possible for each of the following (A formal proof is not required, but give your reasoning):

Docsity.com

  1. f ( n ) = log^2 n! n
  2. f ( n ) = n

(^2) + n log 2 n^ +^1 3 n 3/ 2^ + 2 n + 4

  1. f ( n ) = log 2 (log 2 n n^ )
  2. f ( n ) = 1 + 1 2

2 n

c) Which of the functions in part b) above has the fastest growth rate?

d) Show that if f ( x ) is O (log b x ) where b > 1 , then f ( x ) is O (log a x ) where a > 1.

Docsity.com