Answered step by step
Verified Expert Solution
Link Copied!

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.

=====================================================================

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

ISBN: 0805302441, 978-0805302448

More Books

Students also viewed these Databases questions