Answered step by step
Verified Expert Solution
Question
1 Approved Answer
= Info = evens.txt is a test file of numbers separated by commas ranging from 2 through 6000. ===================================================================== 3. Write the following class to
= Info =
evens.txt is a test file of numbers separated by commas ranging from 2 through 6000.
=====================================================================
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;1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started