# Searching Algorithms

• Last Updated : 20 Jan, 2023

## What is Searching Algorithm?

Searching Algorithms are designed to check for an element or retrieve an element from any data structure where it is stored.

Based on the type of search operation, these algorithms are generally classified into two categories:

1. Sequential Search: In this, the list or array is traversed sequentially and every element is checked. For example: Linear Search.

Linear Search to find the element “20” in a given list of numbers

Linear-Search

2. Interval Search: These algorithms are specifically designed for searching in sorted data-structures. These type of searching algorithms are much more efficient than Linear Search as they repeatedly target the center of the search structure and divide the search space in half. For Example: Binary Search.

Binary Search to find the element “23” in a given list of numbers

Binary Search

Topic :

Searching Algorithm:

Comparisons:

Library Implementations of Searching Algorithms :

Some standard problems on Searching: