<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>bloomfilter Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/bloomfilter/Wiki/View.aspx?title=Home</link><description>bloomfilter Wiki Rss Description</description><item><title>Updated Wiki: Home</title><link>http://bloomfilter.codeplex.com/wikipage?version=5</link><description>&lt;div class="wikidoc"&gt;A  Bloom filter is a data structure optimized for fast, space-efficient set membership tests. Bloom filters have the unusual property of requiring constant time to add an element to the set or test for membership, regardless of the size of the elements or the number of elements already in the set. No other constant-space set data structure has this property. &lt;br /&gt;&lt;br /&gt;It works by storing a bit vector representing the set S&amp;#39; = {h[i](x) | x in S, i = 1, …, k}, where h[1], …, h[k] := {0, 1} -&amp;gt; [n lg(1/ε) lg e] are hash functions. Additions are simply setting k bits to 1, specifically those at h[1](x), …, h[k](x). Checks are implemented by performing those same hash functions and returning true if all of the resulting positions are 1. &lt;br /&gt;&lt;br /&gt;Because the set stored is a proper superset of the set of items added, false positives may occur, though false negatives cannot. The false positive rate can be specified. &lt;br /&gt;&lt;br /&gt;Bloom filters offer the following advantages:
&lt;ul&gt;&lt;li&gt;Space: Approximately n * lg(1/ε), where ε is the false positive rate and n is the number of elements in the set. 
&lt;ul&gt;&lt;li&gt;Example: There are approximately 170k words in the English language. If we consider that to be our set (therefore n = 1.7E5), and we wish to search a corpus for them with a 1% false positive rate, the filter would require about (1.7E5 * lg(1 / 0.01)) ≈ 162 KB. Contrast this with a hashtable, which would require (1.7E5 elements * 32 bits per element) ≈ 664 KB. Obviously explicit string storage would be significantly more. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Precision: Arbitrary precision, where increasing precision requires more space (following the above size equation) but not more time. 
&lt;ul&gt;&lt;li&gt;Example: If we wanted to reduce our false positive rate in the above example from one percent to one permille the space requirement would go from about 162 KB to about 207 KB. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Time: O(k) where k is the number of hash functions. The optimal number of hash functions (though a different number can  be supplied by the user if desired) is ceiling(lg(1/ε))
&lt;ul&gt;&lt;li&gt;Example: In keeping with our above example, if the accepted false positive rate is 0.001, k = 10. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;This implementation uses Dillinger &amp;amp; Manolios double hashing to provide all but the first two hash functions. By default the first hash function is the type&amp;#39;s GetHashCode() method. This implementation also includes default secondary hash functions for strings (Jenkin&amp;#39;s &amp;quot;One at a time&amp;quot; method) and integers (Wang&amp;#39;s method). &lt;br /&gt;&lt;br /&gt;Bloom filters are due to Burton H. Bloom, as described in the Communications of the ACM in July 1970. The full paper is available here: &lt;a href="http://portal.acm.org/citation.cfm?doid=362686.362692" class="externalLink"&gt;http://portal.acm.org/citation.cfm?doid=362686.362692&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>fatcat1111</author><pubDate>Mon, 02 May 2011 19:35:38 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20110502073538P</guid></item><item><title>Updated Wiki: Home</title><link>http://bloomfilter.codeplex.com/wikipage?version=4</link><description>&lt;div class="wikidoc"&gt;A  Bloom filter is a data structure optimized for fast, space-efficient set membership tests. Bloom filters have the unusual property of requiring constant time to add an element to the set or test for membership, regardless of the size of the elements or the number of elements already in the set. No other constant-space set data structure has this property. &lt;br /&gt;&lt;br /&gt;It works by storing a bit vector representing the set S&amp;#39; = {h[i](x) | x in S, i = 1, …, k}, where h[1], …, h[k] := {0, 1} -&amp;gt; [n lg(1/ε) lg e] are hash functions. Additions are simply setting k bits to 1, specifically those at h[1](x), …, h[k](x). Checks are implemented by performing those same hash functions and returning if all of the resulting positions are 1. &lt;br /&gt;&lt;br /&gt;Because the set stored is a proper superset of the set of items added, false positives may occur, though false negatives cannot. The false positive rate can be specified. &lt;br /&gt;&lt;br /&gt;Bloom filters offer the following advantages:
&lt;ul&gt;&lt;li&gt;Space: Approximately n * lg(1/ε), where ε is the false positive rate and n is the number of elements in the set. 
&lt;ul&gt;&lt;li&gt;Example: There are approximately 170k words in the English language. If we consider that to be our set (therefore n = 1.7E5), and we wish to search a corpus for them with a 1% false positive rate, the filter would require about (1.7E5 * lg(1 / 0.01)) ≈ 162 KB. Contrast this with a hashtable, which would require (1.7E5 elements * 32 bits per element) ≈ 664 KB. Obviously explicit string storage would be significantly more. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Precision: Arbitrary precision, where increasing precision requires more space (following the above size equation) but not more time. 
&lt;ul&gt;&lt;li&gt;Example: If we wanted to reduce our false positive rate in the above example from one percent to one permille the space requirement would go from about 162 KB to about 207 KB. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Time: O(k) where k is the number of hash functions. The optimal number of hash functions (though a different number can  be supplied by the user if desired) is ceiling(lg(1/ε))
&lt;ul&gt;&lt;li&gt;Example: In keeping with our above example, if the accepted false positive rate is 0.001, k = 10. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;br /&gt;This implementation uses Dillinger &amp;amp; Manolios double hashing to provide all but the first two hash functions. By default the first hash function is the type&amp;#39;s GetHashCode() method. This implementation also includes default secondary hash functions for strings (Jenkin&amp;#39;s &amp;quot;One at a time&amp;quot; method) and integers (Wang&amp;#39;s method). &lt;br /&gt;&lt;br /&gt;Bloom filters are due to Burton H. Bloom, as described in the Communications of the ACM in July 1970. The full paper is available here: &lt;a href="http://portal.acm.org/citation.cfm?doid=362686.362692" class="externalLink"&gt;http://portal.acm.org/citation.cfm?doid=362686.362692&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>fatcat1111</author><pubDate>Wed, 03 Mar 2010 20:24:55 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20100303082455P</guid></item><item><title>Updated Wiki: Home</title><link>http://bloomfilter.codeplex.com/Wiki/View.aspx?title=Home&amp;version=3</link><description>&lt;div class="wikidoc"&gt;A  Bloom filter is a data structure optimized for fast, space-efficient set membership tests. Bloom filters have the unusual property of requiring constant time to add an element to the set or test for membership, regardless of the size of the elements or the number of elements already in the set. No other constant-space set data structure has this property. &lt;br /&gt;&lt;br /&gt;It works by storing a bit vector representing the set S' = {h[i](x) | x in S, i = 1, …, k}, where h[1], …, h[k] := {0, 1} -&amp;gt; [n lg(1/ε) lg e] are hash functions. Additions are simply setting k bits to 1, specifically those at h[1](x), …, h[k](x). Checks are implemented by performing those same hash functions and returning if all of the resulting positions are 1. &lt;br /&gt;&lt;br /&gt;Because the set stored is a proper superset of the set of items added, false positives may occur, though false negatives cannot. The false positive rate can be specified. &lt;br /&gt;&lt;br /&gt;Bloom filters offer the following advantages:&lt;br /&gt;• Space: Approximately n * lg(1/ε), where ε is the false positive rate and n is the number of elements in the set. &lt;br /&gt;	○ Example: There are approximately 170k words in the English language. If we consider that to be our set (therefore n = 1.7E5), and we wish to search a corpus for them with a 1% false positive rate, the filter would require about (1.7E5 * lg(1 / 0.01)) ≈ 162 KB. Contrast this with a hashtable, which would require (1.7E5 elements * 32 bits per element) ≈ 664 KB. Obviously explicit string storage would be significantly more. &lt;br /&gt;• Precision: Arbitrary precision, where increasing precision requires more space (following the above size equation) but not more time. &lt;br /&gt;	○ Example: If we wanted to reduce our false positive rate in the above example from one percent to one permille the space requirement would go from about 162 KB to about 207 KB. &lt;br /&gt;• Time: O(k) where k is the number of hash functions. The optimal number of hash functions (though a different number can  be supplied by the user if desired) is ceiling(lg(1/ε))&lt;br /&gt;	○ Example: In keeping with our above example, if the accepted false positive rate is 0.001, k = 10. &lt;br /&gt;&lt;br /&gt;This implementation uses Dillinger &amp;amp; Manolios double hashing to provide all but the first two hash functions. By default the first hash function is the type's GetHashCode() method. This implementation also includes default secondary hash functions for strings (Jenkin's &amp;quot;One at a time&amp;quot; method) and integers (Wang's method). &lt;br /&gt;&lt;br /&gt;Bloom filters are due to Burton H. Bloom, as described in the Communications of the ACM in July 1970. The full paper is available here: &lt;a href="http://portal.acm.org/citation.cfm?doid=362686.362692" class="externalLink"&gt;http://portal.acm.org/citation.cfm?doid=362686.362692&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;. &lt;/div&gt;</description><author>fatcat1111</author><pubDate>Sun, 26 Apr 2009 05:15:37 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20090426051537A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/bloomfilter/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
Here is a summary from &lt;a href="http://en.wikipedia.org/wiki/Bloom_filter" class="externalLink"&gt;http://en.wikipedia.org/wiki/Bloom_filter&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, which has more details:&lt;br /&gt; &lt;br /&gt;The Bloom filter, conceived by Burton H. Bloom in 1970, is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set. False positives are possible, but false negatives are not. Elements can be added to the set, but not removed. The more elements that are added to the set, the larger the probability of false positives.&lt;br /&gt; &lt;br /&gt;For example, one might use a Bloom filter to do spell-checking in a space-efficient way. A Bloom filter to which a dictionary of correct words have been added will accept all words in the dictionary and reject almost all words which are not, which is good enough in some cases. Depending on the false positive rate, the resulting data structure can require as little as a byte per dictionary word.&lt;br /&gt; &lt;br /&gt;A Bloom filter with 1% error and an optimal value of k, on the other hand, requires only about 9.6 bits per element — regardless of the size of the elements! This advantage comes partly from its compactness, inherited from arrays, and partly from its probabilistic nature. If a 1% false positive rate seems too high, each time we add about 4.8 bits per element we decrease it by ten times.&lt;br /&gt; &lt;br /&gt;Bloom filters also have the unusual property that the time needed to either add items or to check whether an item is in the set is a fixed constant, O(k), completely independent of the number of items already in the set. No other constant-space set data structure has this property, but the average access time of sparse hash tables can make them faster in practice than some Bloom filters. &lt;br /&gt;
&lt;/div&gt;</description><author>fatcat1111</author><pubDate>Mon, 25 Jun 2007 00:06:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20070625120621A</guid></item></channel></rss>