This commit is contained in:
krahets
2023-08-04 05:25:00 +08:00
parent 014ad545de
commit 63f09480fa
137 changed files with 8999 additions and 1143 deletions
+48 -10
View File
@@ -26,7 +26,7 @@
<title>10.5.   小结 - Hello 算法</title>
<title>10.6.   小结 - Hello 算法</title>
@@ -82,7 +82,7 @@
<div data-md-component="skip">
<a href="#105" class="md-skip">
<a href="#106" class="md-skip">
跳转至
</a>
@@ -117,7 +117,7 @@
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
10.5. &nbsp; 小结
10.6. &nbsp; 小结
</span>
</div>
@@ -1769,6 +1769,8 @@
@@ -1837,14 +1839,50 @@
<li class="md-nav__item">
<a href="../binary_search_insertion/" class="md-nav__link">
<span class="md-ellipsis">
10.2. &nbsp; 二分查找插入点
</span>
<span class="md-status md-status--new" title="最近添加">
</span>
</a>
</li>
<li class="md-nav__item">
<a href="../binary_search_edge/" class="md-nav__link">
<span class="md-ellipsis">
10.2. &nbsp; 二分查找边界
10.3. &nbsp; 二分查找边界
</span>
<span class="md-status md-status--new" title="最近添加">
</span>
</a>
</li>
@@ -1862,7 +1900,7 @@
<span class="md-ellipsis">
10.3. &nbsp; 哈希优化策略
10.4. &nbsp; 哈希优化策略
</span>
@@ -1882,7 +1920,7 @@
<span class="md-ellipsis">
10.4. &nbsp; 重识搜索算法
10.5. &nbsp; 重识搜索算法
</span>
@@ -1911,7 +1949,7 @@
<span class="md-ellipsis">
10.5. &nbsp; 小结
10.6. &nbsp; 小结
</span>
@@ -3307,7 +3345,7 @@
<h1 id="105">10.5. &nbsp; 小结<a class="headerlink" href="#105" title="Permanent link">&para;</a></h1>
<h1 id="106">10.6. &nbsp; 小结<a class="headerlink" href="#106" title="Permanent link">&para;</a></h1>
<ul>
<li>二分查找依赖于数据的有序性,通过循环逐步缩减一半搜索区间来实现查找。它要求输入数据有序,且仅适用于数组或基于数组实现的数据结构。</li>
<li>暴力搜索通过遍历数据结构来定位数据。线性搜索适用于数组和链表,广度优先搜索和深度优先搜索适用于图和树。此类算法通用性好,无需对数据预处理,但时间复杂度 <span class="arithmatex">\(O(n)\)</span> 较高。</li>
@@ -3394,7 +3432,7 @@
<nav class="md-footer__inner md-grid" aria-label="页脚" >
<a href="../searching_algorithm_revisited/" class="md-footer__link md-footer__link--prev" aria-label="上一页: 10.4. &amp;nbsp; 重识搜索算法" rel="prev">
<a href="../searching_algorithm_revisited/" class="md-footer__link md-footer__link--prev" aria-label="上一页: 10.5. &amp;nbsp; 重识搜索算法" rel="prev">
<div class="md-footer__button md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12Z"/></svg>
@@ -3404,7 +3442,7 @@
上一页
</span>
<div class="md-ellipsis">
10.4. &nbsp; 重识搜索算法
10.5. &nbsp; 重识搜索算法
</div>
</div>
</a>