Uni-Sine

Search Algorithms lessons

Back to course
Progress
1/24
--XP

What is a search algorithm?

Linear search and binary search race to the same target in one sorted list of 32 numbers.

A search algorithm is a set of steps for finding one item in a collection of data. The collection might be a list, a table, a tree or a map.

Some searches check items one at a time. Others skip most of the data, so they finish in far fewer steps.