mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-13 23:56:07 +00:00
deploy
This commit is contained in:
@@ -1993,7 +1993,7 @@
|
||||
</ul>
|
||||
<p>为了提高操作效率,<strong>可以将链表转换为「AVL 树」或「红黑树」</strong>,将查询操作的时间复杂度优化至 <span class="arithmatex">\(O(\log n)\)</span> 。</p>
|
||||
<h2 id="623">6.2.3. 开放寻址<a class="headerlink" href="#623" title="Permanent link">¶</a></h2>
|
||||
<p>「开放寻址」方法不引入额外的数据结构,而是通过“多次探测”来解决哈希冲突,<strong>探测方主要包括线性探测、平方探测、多次哈希</strong>。</p>
|
||||
<p>「开放寻址」方法不引入额外的数据结构,而是通过“多次探测”来解决哈希冲突,<strong>探测方式主要包括线性探测、平方探测、多次哈希</strong>。</p>
|
||||
<h3 id="_1">线性探测<a class="headerlink" href="#_1" title="Permanent link">¶</a></h3>
|
||||
<p>「线性探测」采用固定步长的线性查找来解决哈希冲突。</p>
|
||||
<p><strong>插入元素</strong>:若出现哈希冲突,则从冲突位置向后线性遍历(步长通常为 <span class="arithmatex">\(1\)</span> ),直至找到空位,将元素插入其中。</p>
|
||||
@@ -2042,7 +2042,7 @@
|
||||
data-strict="1"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="bottom"
|
||||
data-input-position="top"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="zh-CN"
|
||||
crossorigin="anonymous"
|
||||
|
||||
@@ -3176,7 +3176,7 @@ f(12836) = f(20336) = 36
|
||||
data-strict="1"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="bottom"
|
||||
data-input-position="top"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="zh-CN"
|
||||
crossorigin="anonymous"
|
||||
|
||||
@@ -1881,7 +1881,7 @@
|
||||
data-strict="1"
|
||||
data-reactions-enabled="1"
|
||||
data-emit-metadata="0"
|
||||
data-input-position="bottom"
|
||||
data-input-position="top"
|
||||
data-theme="preferred_color_scheme"
|
||||
data-lang="zh-CN"
|
||||
crossorigin="anonymous"
|
||||
|
||||
Reference in New Issue
Block a user