danksans4255 danksans4255
  • 01-12-2021
  • Mathematics
contestada

Calculate how many guesses in binary search algorithm.

Respuesta :

Аноним Аноним
  • 01-12-2021

Answer:

In the case of a decimal number, we round down to find the actual number of guesses. Therefore, for a 1000-element array, binary search would require at most 10 guesses. (which is 2,097,152), so we would need at most 22 guesses.

Step-by-step explanation:

Answer Link

Otras preguntas

How does central retina differ from peripheral retina differ?
What is the most heavily populated plain in south asia?
Who was the king of France in 1765
a dog usually moves faster than a bug . That means that if i watch them move for one minute, then the dog would have traveled a greater or smaller distance th
A cell is in a solution of 40% water. if this cell swells, what can you state about the relationship of the cell to its solution?
ZOOM IN BUT HELP ME!19 points
Historically, which age group has been least likely to turn out to vote?
Operation _____ in 1967 was designed to remove NLF strongholds around the Saigon area.
is 5y=x+ (1 over 3) proportional?
Although president wilson exercised a leadership role at the paris peace conference, he had to make concessions to the allies, who insisted on a "____________ _