1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
algol13
1 year ago
15

What is the maximum number of comparisons that a binary search should do for a sorted array of 81,014 elements ?

Physics
1 answer:
Pachacha [2.7K]1 year ago
7 0

The maximum number of comparison is 4502

Binary array : it is an array consist of only 0s and 1s only.

Binary search - an efficient algorithm for finding items from a sorted list.

it is called binary because it divide array into tow halves.

It is used to excess data more faster when the space is tight.

binary search will search the array by dividing it into two halves till it find the value.

The main advantage of it is that is more quicker than a serial search.

binary search algorithm can be implemented in the two ways :

1. Iteration method

2. Recursive method

the maximum number of comparisons is 4502.

To know more about binary array :

brainly.com/question/28346440

#SPJ4

You might be interested in
A car starts from rest and after 20 seconds it's velocity becomes 108km find the acceleration of the car
andre [41]

Answer:

1.5 km/s²

Explanation:

Given that:

a car starts from rest; it means the initial velocity (u) = 0 km/hr = 0 m/s

after time (t) = 20 seconds

the final velocity = 108 km/hr = 30 m/s

The acceleration (a) of the car can be determined by using the formula:

a = \dfrac{v-u}{t}

a = \dfrac{30\  m/s -0 \ m/s}{20 \ s}

a = \dfrac{30 \  m/s}{20 \ s}

a = 1.5 km/s²

7 0
3 years ago
Which of the following is a subsurface event takes place during the rock cycle
alukav5142 [94]

Answer:

The answer is A. Cementing...

Explanation:

hope this helps

4 0
3 years ago
Read 2 more answers
Help me please thank you !
son4ous [18]

Answer:

one is photosynthesis ik

3 0
3 years ago
75 kg + 1352 g = ______________g?
JulsSmile [24]
Answer is 76,352 just look it up
8 0
3 years ago
Read 2 more answers
What is the mechanical energy of a 500kg rollercoaster car moving with a speed of 3m/s at the top hill that is 30m high
koban [17]

K.E = 1/2*m*v^2 = 1/2(500)(3)^2 = 2250 J

m*g*h = 500(9.8)(30) = 147000 J

2250 + 147000 = 149250

4 0
3 years ago
Other questions:
  • 18. Two spaceships are traveling in the same direction. With respect to an inertial frame of reference, spaceship A has a speed
    11·1 answer
  • A 10.0 L balloon contains helium gas at a pressure of 660 mmHg . What is the final pressure, in millimeters of mercury, of the h
    15·1 answer
  • A sample of a substance burns more rapidly in pure oxygen than in air. which factor is most responsible for this high rate of re
    6·1 answer
  • Why are New Hampshire students required to learn about earths systems
    8·1 answer
  • Consider a locomotive and the rest of a freight train to be a single object. Suppose the locomotive is pulling the train up a hi
    15·1 answer
  • An average force of 328 N acts for a time interval of 0.05s on a golf ball
    9·1 answer
  • True or False?
    12·2 answers
  • Can someone please help me with this problem
    11·1 answer
  • A car travels at 20km/h for 60 mins how far does it travel
    9·1 answer
  • this problem occurs in petroleum firefighting when fire streams are applied to the burning liquid surface at such an angle that
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!