mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-21 02:56:11 +00:00
build
This commit is contained in:
@@ -1156,7 +1156,7 @@ comments: true
|
||||
|
||||
「开放寻址 Open Addressing」不引入额外的数据结构,而是通过“多次探测”来处理哈希冲突,探测方式主要包括线性探测、平方探测、多次哈希等。
|
||||
|
||||
### 线性探测
|
||||
### 1. 线性探测
|
||||
|
||||
线性探测采用固定步长的线性查找来进行探测,对应的哈希表操作方法为:
|
||||
|
||||
@@ -2439,7 +2439,7 @@ comments: true
|
||||
}
|
||||
```
|
||||
|
||||
### 多次哈希
|
||||
### 2. 多次哈希
|
||||
|
||||
顾名思义,多次哈希方法是使用多个哈希函数 $f_1(x)$ , $f_2(x)$ , $f_3(x)$ , $\cdots$ 进行探测。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user