We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d985675 commit c31c88eCopy full SHA for c31c88e
bloomfilter/BloomFilterImpl/src/main/java/ds/bloomfilterimpl/Main.java
@@ -1,12 +1,10 @@
1
package ds.bloomfilterimpl;
2
3
-import java.security.NoSuchAlgorithmException;
4
-
5
public class Main {
6
7
- public static void main(String[] args) throws NoSuchAlgorithmException {
+ public static void main(String[] args) {
8
9
- // 0.3 = 30%, 10 elements expected
+ // 0.3 = 30% false positive probability wanted, 10 elements expected
10
BloomFilter bf = new BloomFilter(0.3, 10);
11
12
bf.add("Octavia");
0 commit comments