Fish Touching🐟🎣

Divide and Conquer

Apr 3, 2023

General form: creates a subproblems each of which is 1/b the size of the original problem

一般在参数上做文章,用 Recursion 解决问题
有一个负责调用的函数和一个负责处理的函数
相信自己每一步都是对的来调用处理函数

Master Theorem for Divide and Conquer

Example: Merge Sort | Quicksort
Work with Dynamic Programming (Find maximum subarray)