Turing machine is a Triple
Church-Turing Thesis: an effective method iff it's computable by a Turing machine.
Halt Problem
-
Divide and Conquer
-
Graphs
-
Greedy
-
Dynamic Programming
-
Max Flow
-
NP-hardness
-
Advanced Problems
NP and P
NP-complete problem
Approximation Algorithms
Online Algorithm: how to evaluate:$\forall \text{ input }A(\sigma)\leq \Gamma\cdot OPT(\sigma)$
Ski-rental
Divide a multiplication problem into two smaller problems!
$$
(a10^\frac{n}{2}+b)(c10^\frac n2+d)=ac*10^n+(ad+bc)*10^\frac n2+bd\
=ac*10^n+((a+b)(c+d)-ac-bd)*10^\frac n2+bd $$
Try to down the calculation!
Toom-Cook: