Question: 1 . On average, with an array of 1 0 , 0 0 0 elements, how many comparisons will the linear search perform? ( Assume

1. On average, with an array of 10,000 elements, how many comparisons will the linear search perform?(Assume the items being searched for are not consistently found in the array.)-(5 points)2. With an array of 10,000 elements, what is the maximum number of comparisons the binary search will perform? (Assume the items searched for are not found in the array.)-(5 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!