What is Binary Search Algorithm? Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 7 Likes Like Report Binary Search is a searching algorithm used in a sorted array by repeatedly dividing the search interval in half and the correct interval to find is decided based on the searched value and the mid value of the interval. Example of binary searchProperties of Binary Search:Binary search is performed on the sorted data structure for example sorted array. Searching is done by dividing the array into two halves. It utilizes the divide-and-conquer approach to find an element.Pre-requisites to apply Binary Search Algorithm:For applying binary search in any data structure, the data structure must satisfy the following two conditions: The data structure is sorted.Any random element of the data structure can be directly accessed i.e., can be accessed in constant time.Applications of Binary Search:The binary search operation is applied to any sorted array for finding any element. Binary search is more efficient and faster than linear search. In real life, binary search can be applied in the dictionary.Binary search is also used to debug a linear piece of code.Binary search is also used to find if a number is a square of another or not.What else can you read?Binary SearchVariants of Binary SearchLinear Search vs Binary SearchUbiquitous Binary Search Create Quiz Comment K kanikajoshi2209 Follow 7 Improve K kanikajoshi2209 Follow 7 Improve Article Tags : Searching DSA Definitions and Meanings Binary Search Explore DSA FundamentalsLogic Building Problems 2 min read Analysis of Algorithms 1 min read Data StructuresArray Data Structure 3 min read String in Data Structure 2 min read Hashing in Data Structure 2 min read Linked List Data Structure 3 min read Stack Data Structure 2 min read Queue Data Structure 2 min read Tree Data Structure 2 min read Graph Data Structure 3 min read Trie Data Structure 15+ min read AlgorithmsSearching Algorithms 2 min read Sorting Algorithms 3 min read Introduction to Recursion 15 min read Greedy Algorithms 3 min read Graph Algorithms 3 min read Dynamic Programming or DP 3 min read Bitwise Algorithms 4 min read AdvancedSegment Tree 2 min read Binary Indexed Tree or Fenwick Tree 15 min read Square Root (Sqrt) Decomposition Algorithm 15+ min read Binary Lifting 15+ min read Geometry 2 min read Interview PreparationInterview Corner 3 min read GfG160 3 min read Practice ProblemGeeksforGeeks Practice - Leading Online Coding Platform 1 min read Problem of The Day - Develop the Habit of Coding 5 min read Like