SUNY Geneseo Department of Computer Science


Master Theorem, Part 2

{Date}

CSci 240, Spring 2007
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture

Misc

Exam 1 Friday (Feb. 23)

Faculty applicant (Apan Qasem) interviewing today

Last applicant (Gahyun Park) interviewing Friday, 2/23

Questions?

The Master Theorem

Let f be defined by a recurrence of the form

Consider how this expands

[A Recurrence Expanded into a Tree of Terms]

Then...

... Which really isn't as bad as it looks

Intuition: a f(n/b) term yields behavior of the form nlogba.

Application: Figure out how nlogba relates to g(n) and plug in a, b, and/or g to get a closed form

Try it on the recurrence from the pattern-drawing algorithm

Hand out problem set 8

Lab 5

Hand out

Why you might care about vectors and matrices (done in lab)

Next

(After exam)

Reasoning about loops

Read section 8.1


Next Lecture