Binary Search is defined as a searching algorithm used in a sorted array by repeatedly dividing the search interval in half. The main principle used in the algorithm is to divide and conquer. The idea of binary search is to use the information that the array is sorted and reduce the time complexity to O(log N).
Conditions/Pre-requisite for Binary Search -
The data structure(array, list) must be sorted.
Access to any element of array/list takes constant time.
#datastructures #dsalgo #binarysearch #java
En esta página del sitio puede ver el video en línea Data Structures and Algorithms Binary Search | Time Complexity | DSA Programming de Duración hora minuto segunda en buena calidad , que subió el usuario Prashant Rana 20 marzo 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 32 veces y le gustó 8 a los espectadores. Disfruta viendo!