Weekly Topic: Algorithmic Schemas

This year, we try to unite divide & conquer, greedy and searching over the state space under the topic of algorithmic schemas, as they refer to more of algorithmic thinkings than concrete algorithms.

Problem Set

Divide & Conquer

Suppose you have a sorted array, and you want to find whether a certain value x is in the array. We can start at the middle location, and check whether the value is x. If the value v is x, then we are done, else we can move to the left or right side.

Estimate the Time Complexity

It might be important to notice the time complexity of the divide and conquer algorithm.

Master Theorem

Master Theorem

Greedy

Searching