How binary search is faster than linear search?

Правка en1, от Sirandrew2, 2020-07-05 21:03:34

We need a sorted array to perform a binary search in that case the time complexity already became greater than the linear search, so isnt linear search a better option in that case?

Теги #algorithms, #binary search, linear-search, time-complexity

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Sirandrew2 2020-07-05 21:03:34 228 Initial revision (published)