当前位置:网站首页>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
边栏推荐
猜你喜欢

Modify the files in the jar package

From master of Engineering Physics of Tsinghua University to open source entrepreneur of cloud computing

C + + game development

Performance evaluation report of YoMo codec - Y3

公网IP地址和SSL证书可以提升SEO吗?

都要2021年了,现代C++有什么值得我们学习的?

How SSL certificate and public IP address affect SEO

刚毕业都会迷茫,我经过7年总结,送给程序员的你们7点建议

说说 C# 9 新特性的实际运用

手把手教你使用容器服务 TKE 集群审计排查问题
随机推荐
11.9
Configure the NZ date picker time selection component of ng zerro
Software engineering in code -- source code analysis of menu project
Application of EMQ X in Internet of things platform of China Construction Bank
input 与 button 的问题 (空隙/不等高/对不齐)及 解决办法
Interviewer: what are cache penetration, cache avalanche and cache breakdown?
商品后台系统优化
Technical point 5: XML language
JT-day10
配置ng-zerro的nz-date-picker时间选择组件
Day84: Luffy: preferential activity strategy & User Authentication & checking / settlement of shopping cart goods
How can financial management system help enterprises realize financial automation management?
又一道比较运算符相关的面试题让我明白基础很重要
配置ng
Application of V7 version of lvgl Library
如何实现LRU算法
【涂鸦物联网足迹】涂鸦云平台接口说明
SQL server attached database access denial resolution summary
修改jar包里的文件
Hand in hand to teach you to use container service tke cluster audit troubleshooting