Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Discrete Mathematical Structures: Homework 5 Solutions for CS173 Spring 2006, Slides of Discrete Mathematics

The solutions to homework 5 for the discrete mathematical structures course offered by cs173 at the university of california, berkeley, during the spring 2006 semester. The homework covers topics such as functions, domains, big-o notation, and summations.

Typology: Slides

2012/2013

Uploaded on 04/27/2013

atmaja
atmaja ๐Ÿ‡ฎ๐Ÿ‡ณ

4.2

(45)

182 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS173: Discrete Mathematical Structures
Spring 2006
Homework #5
Due 02/19/06
Solutions (35 points)
1. (Points given on compass independently) For this problem, please log in to
compass and answer the 5 true/false questions contained in Quiz 1.
Solutions:
)(2 10000
no
n= False.
)!(2 nO
n= True.
)()log( 0000000001.1
nonn =ร— True.
n!=little-omega(n^(10^(10^100)) True.
1 = O(2^10000) True.
2. (12 points), 3 points for each correct question, -1 point for bad domain, bad big-O
or any other partial error. โ€“2 for major error
Consider the four following functions: f(x)
=
lne(lne(x)) , g(x)=ex,h(x)=x5,
t(x)=x10 . Find the domain of definition and the big-O of the following functions:
a.
(fogoh)(x)
Solution: )ln(5))(( xxhgf
=
oo . Thus, the domain is x>0, and
O(ln(x))
b.
(fโˆ’1og)(x)
Solution:
x
e
e
exgf =
โˆ’))(( 1o. Thus, the domain is all real numbers,
and )(
x
e
e
eO
c.
(gโˆ’1oh)(x)
Solution: )ln(5))(( 1xxhg =
โˆ’o. Thus, the domain is x>0, and
O(ln(x))
d.
g(x) *[( fotโˆ’1)(x)]
Solution: ))]ln(ln()
10
1
[ln()])([()( 1xextfxg x+=ร— โˆ’
o. Thus, the
domain is x>0, and O( ))ln(ln(xe x)
Docsity.com
pf3
pf4

Partial preview of the text

Download Discrete Mathematical Structures: Homework 5 Solutions for CS173 Spring 2006 and more Slides Discrete Mathematics in PDF only on Docsity!

CS173: Discrete Mathematical Structures

Spring 2006

Homework

Due 02/19/

Solutions (35 points)

  1. (Points given on compass independently) For this problem, please log in to compass and answer the 5 true/false questions contained in Quiz 1.

Solutions: 2 n^ = o( n^10000 ) False. 2 n^ = O(n! )True. n ร— log( n)=o( n^1.^0000000001 )True. n!=little-omega(n^(10^(10^100)) True. 1 = O(2^10000) True.

  1. (12 points), 3 points for each correct question, -1 point for bad domain, bad big-O or any other partial error. โ€“2 for major error

Consider the four following functions: f (x) = lne (lne (x)) , g(x) = ex^ , h(x) = x^5 ,

t(x) = x^10. Find the domain of definition and the big-O of the following functions: a. ( f o g o h)(x) Solution: ( f o goh)(x)= 5 ln(x). Thus, the domain is x>0, and O(ln(x)) b. ( f โˆ’^1 o g)(x)

Solution: eex ( f โˆ’^1 o g)(x)= e. Thus, the domain is all real numbers,

and ( ) eex O e c. (gโˆ’^1 o h)(x) Solution: ( g โˆ’^1 o h)(x)= 5 ln(x). Thus, the domain is x>0, and O(ln(x))

d. g(x) *[( f o tโˆ’^1 )(x)]

Solution: ) ln(ln( ))] 10

g ( x)ร— [(f o tโˆ’^1 )(x)]=ex^ [ln( + x. Thus, the

domain is x>0, and O( ex^ ln(ln(x)))

  1. (12 points) 2 points for each correct answer.

a. Evaluate:

( j + 1)^2 j = 2 (2i^ โˆ’^ 1)

5 โˆ’i

i = 1

4

Solution: ( 3 2 / 1 + 42 / 1 + 52 / 1 )+( 32 / 3 + 42 / 3 )+( 32 / 5 )= 60. 1

b. Let f(x) be the set of all even numbers smaller or equal than x. For example, f(10)={0,2,4,6,8,10}. Let g(x)=2x.

Compute: j j โˆˆ( f og )(i )

i = 1

4

Solution: 2+(2+4)+(2+4+6)+(2+4+6+8)=

c. There is also a special notation for products: an i = 1

n

โˆ =^ a 1 *^ a 2 ...^ an.

Compute: (โˆ’ 1 )i^2

i = 5

10

โˆ =^

Solution:

(^ โˆ’ 1 )i^2

i = 5

10

( โˆ’ 1 )^5 2 ร—(โˆ’ 1 )^62 ร—(โˆ’ 1 )^72 ร—(โˆ’ 1 )^82 ร—(โˆ’ 1 )^92 ร—(โˆ’ 1 )^102 =โˆ’ 26

d. Express this sum in terms of n:

j

j + 1

j = 1 ๏ฃธ๏ฃท

n

(1-1/2)+(1/2-1/3)+โ€ฆ([1/n]-[1/(n+1)])= 1+(-1/2+1/2)+(-1/3+1/3)+โ€ฆ (-[1/n] +[1/n])-1/(n+1)= 1-1/(n+1)

e. Express this sum in terms of n: i i = 1

k

k = 1

n

1 1 1

2 1 1

โˆ‘โˆ‘ =^ โˆ‘ + = โˆ‘ +โˆ‘

= = = = =

i kk k k nn n n n

n

k

n

k

n

k

n

k

k

i

f. Express n! using product (โˆ ) notation.

=

n

i

i 1

Case 2: Both A and B-A are countably infinite. There are bijective functions f: AN and g: (B-A)  N Define a function h:NAUB as follows: h(x) = f(x/2) when x is even, g((x+1)/2) when x is odd