当前位置:网站首页>2020-11-09:谈谈布隆过滤器和布谷鸟过滤器的相同点和不同点?
2020-11-09:谈谈布隆过滤器和布谷鸟过滤器的相同点和不同点?
2020-11-09 22:37:00 【福大大架构师每日一题】
福哥答案2020-11-09:
相同点: 都是过滤器。
不同点: 算法:布隆过滤器多个hash函数。布谷鸟过滤器用布谷鸟哈希算法。 能否删除:布隆过滤器无法删除元素。布谷鸟过滤器可以删除元素,有误删可能。 空间是否2的指数:布隆过滤器不需要2的指数。布谷鸟过滤器必须是2的指数。 空间利用率:相同误判下,布谷鸟空间节省40%多。 查询性能:布隆过滤器查询性能弱,原因是使用了多个hash函数,内存跨度大,缓存行命中率低。布谷鸟过滤器访问内存次数低,效率相对高。 哈希相关:布隆过滤器的多个函数函数之间没关系。布谷鸟过滤器的两个哈希函数可互相推导,两者有关系,用到了【空间是2的指数】和【按位与】。 重复插入相同元素:布隆过滤器天然自带重复过滤。布谷鸟过滤器会发生挤兑循环问题。
Redis布隆Bloom过滤器 布隆过滤器过时了,未来属于布谷鸟过滤器? 【Redis 第七篇】面试加分项:缓存穿透,布隆过滤器-计数过滤器-布谷鸟过滤器(好文005)
版权声明
本文为[福大大架构师每日一题]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4553401/blog/4710341
边栏推荐
猜你喜欢
![[最佳实践]了解 Eolinker 如何助力远程办公](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[最佳实践]了解 Eolinker 如何助力远程办公

LeetCode 50 Pow(x,n)

Hand in hand to teach you to use container service tke cluster audit troubleshooting

Quick for imx6ull development board c program call shell

Software engineering in code -- source code analysis of menu project

LeetCode 50 Pow(x,n)

恒讯科技浅谈:出现服务器宕机的处理方式

低功耗蓝牙单芯片为物联网助力

代码中的软件工程--对menu项目的源码分析

From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing
随机推荐
代码中的软件工程--对menu项目的源码分析
Chrome扩展程序热更新方案:2.基于双缓存更新功能模块
如何k个一组反转链表
Traditional purchasing mode has changed! How to innovate automobile purchasing function?
Unemployment after graduation? How do college students allocate their study time and have a complete computer knowledge system?
Operation! Nested JSON second change dataframe!
如何实现LRU算法
东哥吃葡萄时竟然吃出一道算法题!
It will be 2021. What is the modern C + + worth learning?
Postman (1) -- function introduction
How SSL certificate and public IP address affect SEO
Kubernetes-18: installation and use of dashboard
Dongge ate grapes when he ate an algorithm problem!
Git老鸟查询手册
AQS源码深入分析之条件队列
Technical point 5: XML language
The number of more than half of the array is printed by the sword
当我们开发一个接口时需要注意些什么
win7+vs2015+cuda10.2配置TensorRT7.0
Software engineering in code -- source code analysis of menu project