

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
Material Type: Assignment; Class: Discrete Structures; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Fall 2005;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


!
whenever^ f^ ( n )^ =^ a^ "^ f^ ( n^ / b )^ +^ cnd !
n = bk , where k is a positive integer, !
1, and c and d are real numbers with c positive and^^ a^ "^1 d ,^ nonnegative. Then b^ is an integer greater than
f ( n ) =^ " #^ $ % $^ O O O ((( nnndd log^ )log^ b a (^) ) n ) ififif^ aaa^ <=>^ bbbddd. We will prove the Master Theorem by solving the following parts (some of th answers can be found in your book. See exercises 29-33 on p 435). e a. Show that if !
a = bd and n is a power of b, then !
b. Use part a. to show that if^ f^ ( n )^ =^ f^ (^1 )^ "^ nd^ +^ cnd^ log b^ n. !
c. Show that if^^ a^ =^ bd , then^ f(n)^ is^ O(nd^ log^ n). !
a " bd and n is a power of b, then !
where^^ f^ ( n )^ =^ C^1 nd^ +^ C^2 n log b^ a , !
C 1 = bd^ c /( bd^ " a )and !
d. Use part c. to show that if a < b^^ C^2 = d , then^ f^ (^1 )^ + f(n)=O(n^ bd^ c^ /( a^ " d^ ).bd^ ). e. Use part c. to show that if a > bd , then !
f ( n ) = O ( n log b^ a^ ).
b. c. R1R1 ∩– R2,R2, d. e. R2R1 – ⊕ R1, R2.