当前位置:网站首页>面试官:Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
面试官:Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
2022-07-30 10:53:00 【InfoQ】
背景
布隆过滤器

布隆过滤器的问题

布隆过滤器增强版

布谷鸟过滤器
查询性能弱
空间利用效率低
不支持反向操作
不支持计数
为啥要取名布谷鸟呢?
布谷鸟哈希
p1 = hash1(x) % l
p2 = hash2(x) % l
布谷鸟哈希的问题
布谷鸟过滤器
fp = fingerprint(x)
p1 = hash1(x) % l
p2 = hash2(x) % l
fp = fingerprint(x)
p1 = hash(x)
p2 = p1 ^ hash(fp) // 异或
p1 = p2 ^ hash(fp)
边栏推荐
- PyQt5 - draw text on window
- 关于verilog的时延研究
- Re19: Read the paper Paragraph-level Rationale Extraction through Regularization: A case study on European Court
- AB test summary
- [Deep Learning] (Problem Record)
- Linear Regression - Small Batch Stochastic Gradient Descent - 神经网络学习笔记4——自动编码器(含稀疏,堆叠)(更新中)
- JSP 语法简介说明
- Log4j有哪几种日志级别呢?
- Flask's routing (app.route) detailed
- 美团内推+校招笔试题+知识点总结
猜你喜欢
2022全球数字经济大会人工智能专场:AI安全受高度关注
现在报PMP还来得及参加9月的考试吗?分享敏捷全真模拟题
PyQt5 - draw sine curve with pixels
Pytorch中 nn.Transformer的使用详解与Transformer的黑盒讲解
基于.NetCore开发博客项目 StarBlog - (16) 一些新功能 (监控/统计/配置/初始化)
干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)
易基因:人类tRNA基因位点表现出与衰老相关的DNA高甲基化|研究文章
4. yolov5-6.0 ERROR: AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' solution
实现web实时消息推送的7种方案
MFCC转音频,效果不要太逗>V<!
随机推荐
Meikle Studio - see the actual combat notes of Hongmeng device development 4 - kernel development
MySQL | Subqueries
NLP领域的最新研究进展
Oracle中SQL语言和分页rownum分析
mysql与redis 区别
Neural Network Study Notes 4 - Autoencoder (including sparse, stacked) (updated)
Understanding of deadlock
AIX shell获取前几个月时间
typescript入门之helloworld
【 HMS core 】 【 Analytics Kit] [FAQ] how to solve the payment amount in huawei pay analysis shows zero problem?
Basemap和Seaborn
vscode中写markdown格式笔记的配置过程和相关语法
MySQL database maintenance
idea的package没有空心
Array of Shell System Learning
ODrive应用 #4 配置参数&指令「建议收藏」
360发布面向未来的EDR,全方位守护政企用户终端安全
Shell system learning function
OC-ARC (Automatic Reference Counting) automatic reference counting
[HarmonyOS] [ARK UI] How to double-click the return key to exit in HarmonyOS ets language