Algorithmic analysis of PPT (greedy, dynamic programming, divide and conquer, recursion)