mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-12 19:47:33 +08:00
Remove the spaces between “ ” and 中文 aside.
This commit is contained in:
@@ -8,7 +8,7 @@ comments: true
|
||||
|
||||
在数据量很大时,「线性查找」太慢;而「二分查找」要求数据必须是有序的,并且只能在数组中应用。那么是否有方法可以同时避免上述缺点呢?答案是肯定的,此方法被称为「哈希查找」。
|
||||
|
||||
「哈希查找 Hash Searching」借助一个哈希表来存储需要的「键值对 Key Value Pair」,我们可以在 $O(1)$ 时间下实现 “键 $\rightarrow$ 值” 映射查找,体现着 “以空间换时间” 的算法思想。
|
||||
「哈希查找 Hash Searching」借助一个哈希表来存储需要的「键值对 Key Value Pair」,我们可以在 $O(1)$ 时间下实现“键 $\rightarrow$ 值”映射查找,体现着“以空间换时间”的算法思想。
|
||||
|
||||
## 算法实现
|
||||
|
||||
|
||||
Reference in New Issue
Block a user