This commit is contained in:
krahets
2024-05-04 19:57:08 +08:00
parent 23353e7960
commit 689db9d610
515 changed files with 1239 additions and 538 deletions
@@ -4382,8 +4382,8 @@
<p>Let the size of the input data be <span class="arithmatex">\(n\)</span>, the following chart displays common types of space complexities (arranged from low to high).</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{Constant Order} &lt; \text{Logarithmic Order} &lt; \text{Linear Order} &lt; \text{Quadratic Order} &lt; \text{Exponential Order}
&amp; O(1) &lt; O(\log n) &lt; O(n) &lt; O(n^2) &lt; O(2^n) \newline
&amp; \text{Constant} &lt; \text{Logarithmic} &lt; \text{Linear} &lt; \text{Quadratic} &lt; \text{Exponential}
\end{aligned}
\]</div>
<p><a class="glightbox" href="../space_complexity.assets/space_complexity_common_types.png" data-type="image" data-width="100%" data-height="auto" data-desc-position="bottom"><img alt="Common types of space complexity" class="animation-figure" src="../space_complexity.assets/space_complexity_common_types.png" /></a></p>