This commit is contained in:
krahets
2023-08-20 13:37:08 +08:00
parent 2e27ad1680
commit 44a8568356
32 changed files with 140 additions and 130 deletions
+2 -2
View File
@@ -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$ 进行探测。