This commit is contained in:
krahets
2024-04-06 03:02:26 +08:00
parent 5988d20958
commit a263b839b9
875 changed files with 484736 additions and 2893 deletions

View File

@@ -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>