<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cache on H&amp;W</title>
    <link>https://yy-tech.online/tags/cache/</link>
    <description>Recent content in Cache on H&amp;W</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 28 May 2026 00:53:02 +0800</lastBuildDate>
    <atom:link href="https://yy-tech.online/tags/cache/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[Autodesk] Play With Bloom Filter</title>
      <link>https://yy-tech.online/post/play-with-bloomfilter/</link>
      <pubDate>Fri, 07 Aug 2020 11:38:41 +0800</pubDate>
      <guid>https://yy-tech.online/post/play-with-bloomfilter/</guid>
      <description>&lt;h2 id=&#34;what-is-a-bloom-filter&#34;&gt;What Is a Bloom Filter?&lt;/h2&gt;
&lt;p&gt;A Bloom filter is a space-efficient probabilistic data structure used to test whether an element is a member of a set. When an element is added, it is hashed by &lt;strong&gt;K independent hash functions&lt;/strong&gt;, each mapping the element to a position in a bit array, which is then set to &lt;code&gt;1&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To query membership, the same K positions are checked:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If &lt;strong&gt;any bit is 0&lt;/strong&gt; → the element is &lt;strong&gt;definitely not&lt;/strong&gt; in the set.&lt;/li&gt;
&lt;li&gt;If &lt;strong&gt;all bits are 1&lt;/strong&gt; → the element is &lt;strong&gt;probably&lt;/strong&gt; in the set (false positives are possible).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The key difference from a single-hash bitmap: using K hash functions spreads the load and significantly reduces collision probability.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
