Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zxch3n/bloom-filter


https://github.com/zxch3n/bloom-filter

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

# Bloom filter analysis

![picture 1](images/00742a6e42917e7ee1271a8e8c66551481d8d9d13a7bce71326231335b85570c.png)

Run with

```
deno run https://raw.githubusercontent.com/zxch3n/bloom-filter/master/solve.ts
```

Example output
```
The bloom filter contains m bits and has capacity of n elements.
Enter m: 1000
Enter n: 100
The best k = 7
False positive rate = 0.008213554634050255
```