当前位置:网站首页>Cuckoo filter
Cuckoo filter
2022-07-02 19:36:00 【Ingsuifon】
Insert
h 1 ( x ) = h a s h ( x ) h_1(x)=hash(x) h1(x)=hash(x)
h 2 ( x ) = h 1 ( x ) ⊕ h a s h ( x ′ s f i n g e r p r i n t ) h_2(x)=h_1(x)⊕hash(x's fingerprint) h2(x)=h1(x)⊕hash(x′sfingerprint)
The cleverness of the calculation formula of these two candidate positions lies in , h 1 ( x ) h_1(x) h1(x) It can also be done through h 2 ( x ) h_2(x) h2(x) To calculate . such , When the current element needs to be relocated , There is no need to know where the current element is placed h 1 h_1 h1 still h 2 h_2 h2, Only need to use j = i ⊕ h a s h ( f i n g e r p r i n t ) j=i⊕hash(fingerprint) j=i⊕hash(fingerprint) You can calculate another candidate position .
边栏推荐
- 横向越权与纵向越权[通俗易懂]
- End-to-End Object Detection with Transformers(DETR)论文阅读与理解
- AcWing 1137. Select the best line solution (the shortest circuit)
- Think about the huge changes caused by variables
- Understanding and function of polymorphism
- LeetCode 0871. Minimum refueling times - similar to poj2431 jungle adventure
- 搭建哨兵模式reids、redis从节点脱离哨兵集群
- Watchful pioneer world outlook Architecture - (how does a good game come from)
- AcWing 1131. Saving Private Ryan (the shortest way)
- pxe装机「建议收藏」
猜你喜欢

《重构:改善既有代码的设计》读书笔记(下)

线程应用实例

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

Yunna | why use the fixed asset management system and how to enable it

安装单机redis详细教程

搭建主从模式集群redis

AcWing 1126. 最小花费 题解(最短路—dijkstra)

Thread application instance

Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode

Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
随机推荐
数据降维——因子分析
4274. 后缀表达式-二叉表达式树
Bubble sort array
Virtual machine initialization script, virtual machine mutual secret key free
线程应用实例
c语言里怎么设立优先级,细说C语言优先级
Which video recording software is better for the computer
搭建主从模式集群redis
A4988 drive stepper motor "recommended collection"
【pytorch学习笔记】Tensor
Implementation of 452 strcpy, strcat, StrCmp, strstr, strchr
Introduction of Ethernet PHY layer chip lan8720a
以太网PHY层芯片LAN8720A简介
C file input operation
搭建哨兵模式reids、redis从节点脱离哨兵集群
Registration opportunity of autowiredannotationbeanpostprocessor in XML development mode
《架构整洁之道》读书笔记(下)
Juypter notebook modify the default open folder and default browser
MySQL advanced (Advanced) SQL statement
NMF-matlab