27th December, 2008
Ilya Grigorik has posted a very nice introduction to bloom filters in Ruby:
Instead of storing the key-value pairs, as a regular hash table would, a Bloom filter will give you only one piece of information: true or false based on the presence of a key in the hash table (equivalent to Enumerable's include?() function in Ruby). This relaxation allows the filter to be represented with a much smaller piece of memory: instead of storing each value, a bloom filter is simply an array of bits indicating the presence of that key in the filter.
(Not to be confused with the pretty kind of bloom filters)
