[SOLVED] CSE204 Assignment 6-Comparison of Linear and Binary search

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Linear-and-Binary-Search-2r828m.zip (303.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

Offline 1 Objective: Comparison of Linear and Binary search

Task:

  1. You have to implement Linear search and binary search
  2. Populate the input array of size n by generating sorted random integers
  3. Randomly generate the key to search in the input array.
  4. Record the time to accomplish the searches
  5. The input size can vary from 10 to 10000.
  6. Plot running time of both the search algorithm against the input array size n (ex:

    n=10,100,200,500,1000,2000,5000,10000)

Submission:

  1. Code in C++
  2. You have to submit the codes and a report containing the plots
  • Linear-and-Binary-Search-2r828m.zip