Bloom Filter Lab demonstrates a compact probabilistic set. Add values to a bit array, then query membership. A negative answer is definitive; a positive answer may be a false positive.
- ๐งฎ Configure bit-array size and hash count.
- โ Insert values and inspect the bits they set.
- ๐ Query membership with clear โpossibleโ semantics.
- ๐ Estimate the theoretical false-positive probability.
- ๐ Keep all data in browser memory.
Start the app. It preloads three sample words; query one of them, then try a new value and observe how the bit array changes.
Requires Node.js 20 or newer.
npm start
Open http://127.0.0.1:4178. Run checks with npm test.
- ๐ข Node.js built-in HTTP server
- ๐ Browser JavaScript and typed arrays
- ๐งช Node.js built-in test runner
public/ Bloom filter model and interface
test/ Membership behavior tests
assets/ Original SVG artwork
.github/ CI workflow
server.js Dependency-free static server
- Add an optimal hash-count calculator.
- Compare multiple bit-array configurations.
- Add a side-by-side counting Bloom filter lesson.
Contributions are welcome. Preserve the no-false-negative property for inserted values and document the limits of the demonstration hashes.
MIT. See LICENSE.