This commit is contained in:
krahets
2026-04-04 23:10:58 +08:00
parent 5b59dbded2
commit fec71ace08
168 changed files with 308 additions and 963 deletions
@@ -5261,8 +5261,8 @@
<p>設輸入資料大小為 <span class="arithmatex">\(n\)</span> ,圖 2-16 展示了常見的空間複雜度型別(從低到高排列)。</p>
<div class="arithmatex">\[
\begin{aligned}
O(1) &lt; O(\log n) &lt; O(n) &lt; O(n^2) &lt; O(2^n) \newline
\text{常數階} &lt; \text{對數階} &lt; \text{線性階} &lt; \text{平方階} &lt; \text{指數階}
&amp; O(1) &lt; O(\log n) &lt; O(n) &lt; O(n^2) &lt; O(2^n) \newline
&amp; \text{常數階} &lt; \text{對數階} &lt; \text{線性階} &lt; \text{平方階} &lt; \text{指數階}
\end{aligned}
\]</div>
<p><img alt="常見的空間複雜度型別" class="animation-figure" src="../space_complexity.assets/space_complexity_common_types.png" /></p>