johnnyb14 johnnyb14
  • 09-06-2020
  • Computers and Technology
contestada

In which case will the linear search return the lowest value faster than the
binary search?

Respuesta :

azikennamdi
azikennamdi azikennamdi
  • 16-06-2020

Answer:

A linear search is one that scans every record/file until it discovers the value being searched for.

Binary search, on the other hand, is also known as Logarithmic search. It is used to locate the position of a value inside an array that has already been sorted.  

The linear search will return the lowest value faster than the binary search when small arrays are involved.

This will only be feasible when the array is sorted prior.

Cheers!

Answer Link

Otras preguntas

Question 1 Find the area of AJKD (Triangle JKD) +y F 4 2 A 0 B 6 с 8 D 10 2 4 12 А 12units2 B 15units С bunits2 D 14units
Answer plzzzzzzzzzzzzzzzzzzzzz
PLEASE HELP GEOMETRY!!!!! Based on geometric properties, which statements are correct? A) The formula V = lwh can be used to model the shape of a cake. B) The
What is the change in enthalpy for a reaction if the reactants have 270 kJ of energy and the products have 150 kJ of energy?* 120 kJ -120 kJ 420 kJ -420 kJ
. Create a java File call Sales.Java contains a Java program that prompts for reads in the sales for each of 5 salespeople in a company. It then prints out the
will give correct answer brainliest​
if someone can do this would appreciate this 3,000 if ya know, ya know
Y-intersect of the liner function
If the diameter of a circle is 50 yds, the radius is​
which angles are vertical to each other