Algorithm Chapter 3 - Growth of Functions
Asymptotic notation
-notation
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Figure 1. 圖中比較上面的那個函數是 , 比較下面的函數是 。 是 的漸進上限。
- 白話文: 是一個函數的集合,這個集合裡面的每一個函數,在參數大到某一個程度 () 過後,其函數值都無法超過 的某整數倍 ()
- 此時,我們稱 是 的漸進上限 (asymptotic upper bound)
- 如果 , 則我們會直接寫作
- 舉例:以下函數都是在 裏面的函數
-notation
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Figure 2. 圖中比較下面的那個函數是 , 比較上面的函數是 。 是 的漸進下限。
- 白話文: 是一個函數的集合,這個集合裡面的每一個函數,在參數大到某一個程度 () 過後,其函數值都不小於 的某整數倍 ()
- 此時,我們稱 是 的漸進下限 (asymptotic lower bound)
- 如果 , 則我們會直接寫作
- 舉例:以下函數都是在 裏面的函數
-notation
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Figure 3. 圖中的函數由上到下是 , 和 。 是 的漸進上下限。
- 白話文: 是一個函數的集合,這個集合裡面的每一個函數,在參數大到某一個程度 () 過後,其函數值都會介於 的某整數倍 () 到另一個整數倍 () 之間
- 此時,我們稱 是 的漸進上下限 (asymptotic tight bound)
- 如果 , 則我們會直接寫作
- , 若且唯若
-notation
- 白話文: 是一個函數的集合,無論 乘上哪一個正數 (),這個集合裡面的每一個函數總是會從某個數字開始 (),其函數值永遠都小於(沒有等於)
- 更好懂的版本:
- 舉例:以下函數都是在 裏面的函數
- 舉例:以下函數都不是在 裏面的函數
-notation
- 白話文: 是一個函數的集合,無論 乘上哪一個正數 (),這個集合裡面的每一個函數總是會從某個數字開始 (),其函數值永遠都大於(沒有等於)
- 更好懂的版本:
Asymptotic notation in equations
略。
Comparisons of functions
Relational properties
- 遞移性 (Transitivity)
- 自反性 (Reflexivity)
- 對稱性 (Symmetry)
- 轉置對稱性 (Transpose Symmetry)
Comparisons
- 若 , 則 漸進小於
- 若 , 則 漸進大於
- 這樣的比較是沒有三一律的。雖然直覺上來說,我們可能會把 想成是 , 想成是 , 但函數並不像一般的實數,有時候函數是無法拿來比大小的
- 例如: 和 無法比大小,因為 會在 0 到 2 之間不斷振盪
Standard notations and common functions
Monotonicity
- 若 時 , 則我們說 是單調遞增 (monotonically increasing) 的函數
- 若 時 , 則我們說 是單調遞減 (monotonically decreasing) 的函數
- 若 時 , 則我們說 是嚴格遞增 (strictly increasing) 的函數
- 若 時 , 則我們說 是嚴格遞減 (strictly decreasing) 的函數
後面是高中數學(???)