Cuckoo filter

A cuckoo filter is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set, like a Bloom filter does. False positive matches are possible, but false negatives are not – in other words, a query returns either "possibly in set" or "definitely not in set". A cuckoo filter can also delete existing items, which is not supported by Bloom filters. In addition, for applications that store many items and target moderately low false positive rates, cuckoo filters can achieve lower space overhead than space-optimized Bloom filters.[1]

Cuckoo filters were first described in 2014.[2]

Algorithm description

A cuckoo filter uses a hash table based on cuckoo hashing to store the fingerprints of items.[2] The data structure is broken into buckets of some size . To insert the fingerprint of an item , one first computes two potential buckets and where could go. These buckets are calculated using the formula

Note that, due to the symmetry of the XOR operation, one can compute from , and from . As defined above, ; it follows that . These properties are what make it possible to store the fingerprints with cuckoo hashing.

The fingerprint of is placed into one of buckets and . If the buckets are full, then one of the fingerprints in the bucket is evicted using cuckoo hashing, and placed into the other bucket where it can go. If that bucket, in turn, is also full, then that may trigger another eviction, etc.

The hash table can achieve both high utilization (thanks to cuckoo hashing), and compactness because only fingerprints are stored. Lookup and delete operations of a cuckoo filter are straightforward.[2]

There are a maximum of two buckets to check by and . If found, the appropriate lookup or delete operation can be performed in time. Often, in practice, is a constant.

In order for the hash table to offer theoretical guarantees, the fingerprint size must be at least bits.[2][3][4] Subject to this constraint, cuckoo filters guarantee a false-positive rate of at most .[2]

Comparison to Bloom filters

A cuckoo filter is similar to a Bloom filter in that they both are fast and compact, and they may both return false positives as answers to set-membership queries:

  • Space-optimal Bloom filters use bits of space per inserted key, where is the false positive rate. A cuckoo filter requires space per key[2] where is the hash table load factor, which can be based on the cuckoo filter's setting. Note that the information theoretical lower bound requires bits for each item. Both bloom filters and cuckoo filters with low load can be compressed when not in use.
  • On a positive lookup, a space-optimal Bloom filter requires a constant memory accesses into the bit array, whereas a cuckoo filter requires at most memory accesses, which can be a constant in practice.
  • Cuckoo filters have degraded insertion speed after reaching a load threshold, when table expanding is recommended. In contrast, Bloom filters can keep inserting new items at the cost of a higher false positive rate before expansion.
  • Bloom filters offer fast union and approximate intersection operations using cheap bitwise operations, which can also be applied to compressed bloom filters if streaming compression is used.

Limitations

  • A cuckoo filter can only delete items that are known to be inserted before.
  • Insertion can fail and rehashing is required like other cuckoo hash tables. Note that the amortized insertion complexity is still .[5]
  • Cuckoo filters require a fingerprint size of at least bits. This means that the space per key must be at least bits, even if is large. In practice, is chosen to be large enough that this is not a major issue.[2]

References

  1. ^ Michael D. Mitzenmacher. "Bloom Filters, Cuckoo Hashing, Cuckoo Filters, Adaptive Cuckoo Filters, and Learned Bloom Filters".
  2. ^ a b c d e f g Fan, Bin; Andersen, Dave G.; Kaminsky, Michael; Mitzenmacher, Michael D. (2014). Cuckoo filter: Practically better than Bloom. Proc. 10th ACM International on Conference on Emerging Networking Experiments and Technologies (CoNEXT '14). Sydney, Australia. pp. 75–88. doi:10.1145/2674005.2674994. ISBN 9781450332798.
  3. ^ Eppstein, David (22 June 2016). Cuckoo filter: Simplification and analysis. Proc. 15th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2016). Leibniz International Proceedings in Informatics (LIPIcs). Vol. 53. Reykjavik, Iceland. pp. 8:1–8:12. arXiv:1604.06067. doi:10.4230/LIPIcs.SWAT.2016.8.
  4. ^ Fleming, Noah (17 May 2018). Cuckoo Hashing and Cuckoo Filters (PDF) (Technical report). University of Toronto.
  5. ^ Pagh, Rasmus; Rodler, Flemming Friche (2001). "Cuckoo hashing". Proc. 9th Annual European Symposium on Algorithms (ESA 2001). Lecture Notes in Computer Science. Vol. 2161. Århus, Denmark. pp. 121–133. doi:10.1007/3-540-44676-1_10. ISBN 978-3-540-42493-2.

Read other articles:

Ina, Kapatid, AnakGenreKeluarga drama, Romantis, KomediPembuatRondel P. Lindayag Reggie AmigoPengembangRoldeo T. Endrinal Julie Anne R. BenitezDitulis olehDanica Domingo David Diuco Mariami Tanangco-DomingoSutradaraDon M. Cuaresma Jojo A. SaguinPengarah kreatifJohnny delos SantosPemeranKim Chiu Maja Salvador Xian Lim Enchong DeeLagu pembukaNgayon at Kailanman oleh Ariel RiveraNegara asalFilipinaBahasa asliFilipina, InggrisJmlh. musim3Jmlh. episode178ProduksiProduser eksekutifArnel T. NacarioP...

 

Himitsu Sentai GorengerGenreTokusatsuPembuatShotaro IshinomoriDitulis olehShozo UeharaSusumu TakahisaHikaru AraiHirohisa SodaKimio HirayamaKeisuke FujikawaSutradaraKoichi TakemotoMinoru YamadaKatsuhiko TaguchiHidetoshi KitamuraMichio KonishiPemeranNaoya MakotoHiroshi MiyauchiBaku HatakeyamaTamegoro Sudo (Diperankan sebagai Jiro Daruma)Lisa KomakiYukio ItoNaratorNobuo TanakaToru OhiraPenggubah lagu temaMichiaki WatanabeLagu pembukaSusume! Goranger oleh Isao Sasaki, Mitsuko Horie dan Columbia Y...

 

Species of bird Ancient antwren Conservation status Least Concern (IUCN 3.1)[1] Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Aves Order: Passeriformes Family: Thamnophilidae Genus: Herpsilochmus Species: H. gentryi Binomial name Herpsilochmus gentryiWhitney & Álvarez A, J, 1998 The ancient antwren (Herpsilochmus gentryi) is a species of tropical bird in the family Thamnophilidae. It is primarily found in terra firme forests of no...

Cet article est une ébauche concernant un peintre italien. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Pour les articles homonymes, voir Bellini. Gentile BelliniAutoportraitNaissance 1429VeniseDécès 23 février 1507VeniseActivités Peintre, sculpteur, médailleurMaître Iacopo BelliniFamille Famille BelliniPère Iacopo BelliniFratrie Giovanni BelliniNicolosia Bellini (d)Parentèle Andrea Mantegna (bea...

 

Amadora Entidad subnacional BanderaEscudo AmadoraLocalización de Amadora en PortugalCoordenadas 38°45′00″N 9°14′00″O / 38.75, -9.2333333333333Idioma oficial PortuguésEntidad Municipio de Portugal, Ciudad de Portugal y Gran ciudad • País Portugal • Región Lisboa • Subregión Gran Lisboa • Distrito LisboaFreguesias 6Eventos históricos   • Fundación 1979Superficie   • Total 23.77 km²Altitud   • Media...

 

Rec 2007RECمعلومات عامةالصنف الفني فيلم رعبالموضوع ما وراء الطبيعة تاريخ الصدور 23 نوفمبر 2007مدة العرض 75 دقيقة اللغة الأصلية لغة إسبانيةالبلد إسبانيامواقع التصوير برشلونة — تاراسا الجوائز  Ignotus Award for Best Audiovisual Production (en) [1] (2008) Pégase du Festival de Bruxelles (fr) (2008) موقع الويب movies.filmax.com

Town in South AustraliaGrace PlainsSouth AustraliaPinery Fire Memorial, Grace PlainsGrace PlainsCoordinates34°22′01″S 138°28′01″E / 34.367°S 138.467°E / -34.367; 138.467Population61 (SAL 2021)[1]Postcode(s)5502[2]Time zoneACST (UTC+9:30) • Summer (DST)ACST (UTC+10:30)Location64 km (40 mi) north of AdelaideLGA(s)Adelaide Plains CouncilWakefield Regional Council[3]State electorate(s)Frome[4] Narungga[5]...

 

بسمة طبعون בסמת טבעון مسجد في بسمة طبعون بسمة طبعونشعار المجلس المحلي تاريخ التأسيس 1965 تقسيم إداري البلد  إسرائيل[1] المنطقة المنطقة الشمالية المسؤولون رئيس المجلس المحلي رائد زبيدات خصائص جغرافية إحداثيات 32°44′17″N 35°09′18″E / 32.738°N 35.155°E / 32.738; 35.155 المساح...

 

Polish hammer thrower Wojciech NowickiNowicki in 2016Personal informationNationalityPolishBorn (1989-02-22) 22 February 1989 (age 34)Białystok, PolandHeight1.96 m (6 ft 5 in)Weight128 kg (282 lb)SportCountryPolandSportAthleticsEventHammer throwClubPodlasie Białystok (2008–)[1]Coached byMalwina Sobierajska-Wojtulewicz (2016–2021), Joanna Fiodorow (2021–) Medal record Men's athletics Representing  Poland Event 1st 2nd 3rd Olympic Games 1 0 1 Wo...

2004 studio album by EspersEspersStudio album by EspersReleasedJanuary 20, 2004Recorded2003GenreFolk, psychedelic folk, New Weird AmericaLength40:25LabelLocust Music, Wichita RecordingsEspers chronology Espers(2004) The Weed Tree(2005) Professional ratingsReview scoresSourceRatingAllMusic[1]Pitchfork Media8.4/10[2] Espers is the self-titled debut studio album by the band Espers. It was released in 2004 on Locust Music. The album was produced by the group's original tri...

 

Further information: Timeline of the introduction of television in countries This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Television in Pakistan – news · newspapers · books · scholar · JSTOR (February 2018) (Learn how and when to remove this template message) Part of a series on theCulture of Pakistan His...

 

2011 fantasy novel by Raymond E. Feist A Kingdom Besieged AuthorRaymond E. FeistCover artistNik KeevilCountryUnited StatesUnited KingdomLanguageEnglishSeriesThe Chaoswar SagaGenreFantasyPublication date12 April 2011Media typePrintISBN9780061468391Preceded byAt the Gates of Darkness Followed byA Crown Imperilled  A Kingdom Besieged is a fantasy novel by American writer by Raymond E. Feist, the first book in the trilogy The Chaoswar Saga, the final saga in The Rift...

Partner of Rembrandt Portrait of Hendrikje Stoffels, c.1654-6, oil on canvas, 101.9 x 83.7 cm; National Gallery, London Hendrickje Stoffels (1626 – 21 July 1663) was the longtime partner of Rembrandt. The couple were unable to marry because of the financial settlement linked to the will of Rembrandt's deceased wife Saskia, but they remained together until Hendrickje's death. In 1654 she gave birth to Rembrandt's daughter Cornelia. In the later years of their relationship Hendrickje managed ...

 

1947 film by John Brahm SingaporeTheatrical release posterDirected byJohn BrahmScreenplay bySeton I. MillerRobert ThoerenStory bySeton I. MillerProduced byJerry BreslerStarringFred MacMurrayAva Gardner Roland CulverCinematographyMaury GertsmanEdited byWilliam HornbeckMusic byDaniele AmfitheatrofColor processBlack and whiteProductioncompanyUniversal International PicturesDistributed byUniversal PicturesRelease date August 13, 1947 (1947-08-13) Running time79 minutesCountryUnited...

 

Indian educationalist (1907–1978) This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article is written like a personal reflection, personal essay, or argumentative essay that states a Wikipedia editor's personal feelings or presents an original argument about a topic. Please help improve it by rewriting it in an encyclopedic style. (December 2017) (Learn how and when to remove this t...

Scottish lawyer and government official The Right HonourableThe Lord Davidson of Glen ClovaKCDavidson in 2019Shadow Advocate General for ScotlandIn office10 October 2010 – 17 May 2021LeaderEd Miliband Harriet Harman Jeremy Corbyn Sir Keir StarmerSucceeded byThe Lord Falconer of ThorntonShadow Spokesperson for ScotlandIn office4 June 2018 – 17 May 2021LeaderKeir StarmerSucceeded byThe Lord Falconer of ThorntonAdvocate General for ScotlandIn office21 March 2006 –...

 

No debe confundirse con partido de Pila. Del Pilar Partido BanderaEscudo Coordenadas 34°28′00″S 58°55′00″O / -34.466666666667, -58.916666666667Cabecera Pilar • Población 226517[1]​Entidad Partido • País  Argentina • Provincia  Buenos AiresIntendente Federico Achával (Frente Unión por la Patria, Partido Justicialista)FundaciónCreación 1864Superficie Puesto 105.º • Total 352 km²[2]​Altitud   • Media ...

 

Sporting event delegationChina at the2019 World Aquatics ChampionshipsFlag of ChinaFINA codeCHNNational federationChinese Swimming AssociationWebsiteswimming.org.cnin Gwangju, South KoreaMedalsRanked 1st Gold 16 Silver 11 Bronze 3 Total 30 World Aquatics Championships appearances197319751978198219861991199419982001200320052007200920112013201520172019202220232024 China competed at the 2019 World Aquatics Championships in Gwangju, South Korea from 12 to 28 July 2019. Medalists Medal Name Sport ...

Pilleth is a small village south of Knighton in Powys, Wales in the traditional county of Radnorshire. It is the site of the ancient church and holy well of St. Mary’s which stands on Bryn Glas Hill overlooking the River Lugg, as it makes its way to Presteigne. Name The earliest reference to Pilleth is in the Domesday Book of 1086, where it is noted as Pilelei. In the Domesday Book, the settlement is listed within the hundred of Hezetre and the county of Herefordshire.[1] There are ...

 

Badminton tournament1988 World Badminton Grand Prix FinalsTournament detailsDates4–8 January 1989Edition6Total prize moneyUS$176,050LocationHong Kong ← 1987 1989 → The 1988 World Badminton Grand Prix was the sixth edition of the World Badminton Grand Prix finals. It was held in Hong Kong, from January 4 to January 8, 1989. Final results Category Winners Runners-up Score Men's singles Zhang Qingwu Xiong Guobao 15–10, 4–15, 15–8 Women's singles Han Aiping Lee Young-suk 11–1, 11–...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!