

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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?
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)
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.
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):
(^2) + n log 2 n^ +^1 3 n 3/ 2^ + 2 n + 4
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.