Question: Exercise 1.1.38. Binary search versus brute-force (linear) search The purpose of this problem is to perform a number of searches into a sorted array. Use

Exercise 1.1.38. Binary search versus brute-force (linear) search The purpose of this problem is to perform a number of searches into a sorted array. Use the Stopwatch class from algs4.jar to time the searches and report the results. For each method, the data will come from one file and you will search that file for each of the integers in a second file. Look at the main methods in BinarySearch and LinearSearch that are given to you for examples of how to use In to read from a file. You need to create a NetBeans project inside the Assignmentl folder for this problem. Use ./tinyW.txt and ../tinyT.txt as your arguments for testing and. ./largeW.txt and ../largeT.txt for the final test of efficiency for these algorithms. Be patient
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
