locality
:剛用過的,很快會再用到in-place
:若演算法只需O(1)輔助空間,則稱為in-placetractable
:存在polynomial time演算法intractable
:不存在polynomial time演算法tail recursion
:recursive在最後一步,可以很容易的被改寫成iterative
最佳化問題、計數問題
optimal sub-structure
overlapping
檢查當前的state是否有算過
有→查表
否→遞回往下查表&計算
\(O(log n) < O(\sqrt{n}) < O(n) < O(nlogn) < O(n^2) < O(n^3) < O(2^n)\)
名詞解釋見這裡
Convex Combination
已知一點集 \(S = {p_1, \dots, p_n} \subseteq \varepsilon^2\)
令\(\lambda = <\lambda 1, \dots, \lambda n>^T \in R^n, \lambda 1 + \dots + \lambda n = 1\),且\(min \{ \lambda 1, \dots, \lambda n \} \geq 0\)
若點\(P = [p_1, \dots, p_n] \lambda = \lambda 1 p1 + \dots + \lambda n pn \)
則稱P為S的convex combination