mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-13 15:56:05 +00:00
deploy
This commit is contained in:
@@ -5253,8 +5253,8 @@
|
||||
<p>入力データサイズを <span class="arithmatex">\(n\)</span> とすると、以下の図はよくある空間計算量の型を低い順から高い順に示しています。</p>
|
||||
<div class="arithmatex">\[
|
||||
\begin{aligned}
|
||||
O(1) < O(\log n) < O(n) < O(n^2) < O(2^n) \newline
|
||||
\text{定数階} < \text{対数階} < \text{線形階} < \text{平方階} < \text{指数階}
|
||||
& O(1) < O(\log n) < O(n) < O(n^2) < O(2^n) \newline
|
||||
& \text{定数階} < \text{対数階} < \text{線形階} < \text{平方階} < \text{指数階}
|
||||
\end{aligned}
|
||||
\]</div>
|
||||
<p><img alt="よくある空間計算量の型" class="animation-figure" src="../space_complexity.assets/space_complexity_common_types.png" /></p>
|
||||
|
||||
@@ -5547,8 +5547,8 @@ T(n) & = n^2 + n & \text{手抜き集計 (o.O)}
|
||||
<p>入力データサイズを <span class="arithmatex">\(n\)</span> とすると、よくある時間計算量の種類は次図のとおりです(小さい順に並べています)。</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