Back

Search Algorithm Visualization Using JavaScript

What is a Search Algorithm.

A search algorithm is an algorithm that retrieves information stored within some data structure.

Below are the few common approaches to implement search algorithms :

The below example covers how the Linear and Binary Search works

Add Items to Table(sorted)
Search Linear Search
Status
Runtime Complexity
Search
Linear Θ(n)
Binary Θ(log2n)
Data Array