mwbockma notes.pdf - CIS 477 9/11 Recurrence Relations the Master Method Notes by Maxwell Bockmann Review of recurrence relations ▪ Recurrence

# mwbockma notes.pdf - CIS 477 9/11 Recurrence Relations the...

• Notes
• 5

This preview shows page 1 - 3 out of 5 pages.

CIS 477 9/11: Recurrence Relations & the Master Method Notes by Maxwell Bockmann Review of recurrence relations : Recurrence relations are equations that recursively define a function in terms of earlier values. The simplest method to solve one is to guess the solution, then prove it by induction. In today’s lecture, we learned about solving recurrences using the Master Method . The formula for recurrences is as follows: T(n) = aT * (n/b) + O(n d ) This is defined where a > 0, b > 1, d 0, and a, b, d are all constants. T(n) is the runtime of the algorithm. “a” is the number of recursive calls. “b” is the size of the recursive calls. “d” is the “other work” of the algorithm. There are three cases for this method: Case 1: If the constant d > log b a, then T(N) = O(n d ) Case 2: If the constant d = log b a, then T(N) = O(n d log n) Case 3: If the constant d < log b a, then T(N) = O(n log b a ) For examples on how to bound a recurrence, see examples/practice section. Proof sketch of the Master Method :

Subscribe to view the full document.

We take several aspects of this tree generated by a recurrence to build the master method:
• Fall '15
• Andrew Lee

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes