415 lecture note #9 


[Ch 5] Recurrence Relations (3)

5.3 Analysis of Algorithms

More Recursive Algorithms

A) Searching Algorithms

(1) Recursive Binary Search

We know how to solve this recurrence and derive complexity.

(will do in the class)

 

Closed form:

A(n) = __________________________  for all n >= __________

Theta complexity:

A(n) = Q(_______)

 Case analysis:

(2) Linear Search in an Unsorted Sequence

 

B) Sorting Algorithms

(1) Merge Sort