Question: 3. Write the following class to use the BF class above, time it and also count the fraction of false positives. You can have other


3. Write the following class to use the BF class above, time it and also count the fraction of false positives. You can have other methods. public class BFTest \{ BFb; // filename is a file (of csv values, see examples in directory checks) // constructor reads the values in the file, and uses the above BF class to create a Bloom Filter of // the values in the file public BFTest(String fileName) {} // filename is a file (of csv values, see examples in directory checks) // this method reads the values in the file "filename" and returns the number of queries that are // answered positively by BF public int testFile(String filename)\{-.. } \} // main method computes and displays statistics public static void main (String[] args) \{ int NMAX=500000; // create a BF for file evens.txt for (int 1=1024;1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
