mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 18:00:18 +08:00
deploy
This commit is contained in:
@@ -201,7 +201,13 @@
|
||||
|
||||
<li class="md-select__item">
|
||||
<a href="/" hreflang="zh" class="md-select__link">
|
||||
中文
|
||||
简体中文
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="md-select__item">
|
||||
<a href="/zh-hant/" hreflang="zh-Hant" class="md-select__link">
|
||||
繁體中文
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -4557,7 +4563,7 @@
|
||||
T(n) = 3 + 2n
|
||||
\]</div>
|
||||
<p><span class="arithmatex">\(T(n)\)</span> 是一次函数,说明其运行时间的增长趋势是线性的,因此它的时间复杂度是线性阶。</p>
|
||||
<p>我们将线性阶的时间复杂度记为 <span class="arithmatex">\(O(n)\)</span> ,这个数学符号称为<u>大(<span class="arithmatex">\(O\)</span> 记号 big-<span class="arithmatex">\(O\)</span> notation)</u>,表示函数 <span class="arithmatex">\(T(n)\)</span> 的<u>渐近上界(asymptotic upper bound)</u>。</p>
|
||||
<p>我们将线性阶的时间复杂度记为 <span class="arithmatex">\(O(n)\)</span> ,这个数学符号称为<u>大 <span class="arithmatex">\(O\)</span> 记号(big-<span class="arithmatex">\(O\)</span> notation)</u>,表示函数 <span class="arithmatex">\(T(n)\)</span> 的<u>渐近上界(asymptotic upper bound)</u>。</p>
|
||||
<p>时间复杂度分析本质上是计算“操作数量 <span class="arithmatex">\(T(n)\)</span>”的渐近上界,它具有明确的数学定义。</p>
|
||||
<div class="admonition abstract">
|
||||
<p class="admonition-title">函数渐近上界</p>
|
||||
|
||||
Reference in New Issue
Block a user