mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-13 04:10:58 +00:00
deploy
This commit is contained in:
@@ -5555,8 +5555,8 @@ T(n) & = n^2 + n & \text{偷懶統計 (o.O)}
|
||||
<p>設輸入資料大小為 <span class="arithmatex">\(n\)</span> ,常見的時間複雜度型別如圖 2-9 所示(按照從低到高的順序排列)。</p>
|
||||
<div class="arithmatex">\[
|
||||
\begin{aligned}
|
||||
O(1) < O(\log n) < O(n) < O(n \log n) < O(n^2) < O(2^n) < O(n!) \newline
|
||||
\text{常數階} < \text{對數階} < \text{線性階} < \text{線性對數階} < \text{平方階} < \text{指數階} < \text{階乘階}
|
||||
& O(1) < O(\log n) < O(n) < O(n \log n) < O(n^2) < O(2^n) < O(n!) \newline
|
||||
& \text{常數階} < \text{對數階} < \text{線性階} < \text{線性對數階} < \text{平方階} < \text{指數階} < \text{階乘階}
|
||||
\end{aligned}
|
||||
\]</div>
|
||||
<p><img alt="常見的時間複雜度型別" class="animation-figure" src="../time_complexity.assets/time_complexity_common_types.png" /></p>
|
||||
|
||||
Reference in New Issue
Block a user