1. Implement the Searcher interface, using the more efficient approach (with a small helper array) outlined in the lecture. Call this class CleverSearcher. 2. Use the test class provided to test the...


do the following question in java


1. Implement the Searcher interface, using the more efficient approach (with<br>a small helper array) outlined in the lecture. Call this class CleverSearcher.<br>2. Use the test class provided to test the functionality of your implementation.<br>Note: This tester class is not exhaustive. Have a think about other tests<br>that might be included. See the unit 4 exercise notes for more details.<br>3. Also use the timer classes provided to time the execution of the findElement<br>method in your CleverSearcher implementation and to compare this with<br>the time taken by the SimpleSearcher implementation when performing<br>searches of the same size.<br>

Extracted text: 1. Implement the Searcher interface, using the more efficient approach (with a small helper array) outlined in the lecture. Call this class CleverSearcher. 2. Use the test class provided to test the functionality of your implementation. Note: This tester class is not exhaustive. Have a think about other tests that might be included. See the unit 4 exercise notes for more details. 3. Also use the timer classes provided to time the execution of the findElement method in your CleverSearcher implementation and to compare this with the time taken by the SimpleSearcher implementation when performing searches of the same size.

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here