mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-14 12:40:58 +00:00
deploy
This commit is contained in:
@@ -3457,7 +3457,7 @@
|
||||
|
||||
<h1 id="105">10.5 重识搜索算法<a class="headerlink" href="#105" title="Permanent link">¶</a></h1>
|
||||
<p>「搜索算法 searching algorithm」用于在数据结构(例如数组、链表、树或图)中搜索一个或一组满足特定条件的元素。</p>
|
||||
<p>根据实现思路,搜索算法总体可分为两种:</p>
|
||||
<p>搜索算法可根据实现思路分为以下两类。</p>
|
||||
<ul>
|
||||
<li><strong>通过遍历数据结构来定位目标元素</strong>,例如数组、链表、树和图的遍历等。</li>
|
||||
<li><strong>利用数据组织结构或数据包含的先验信息,实现高效元素查找</strong>,例如二分查找、哈希查找和二叉搜索树查找等。</li>
|
||||
|
||||
Reference in New Issue
Block a user