Skip to main content
ICT
Lesson A19 - Searches: Sequential & Binary
 
Main   Previous Next
 

A. Sequential Search page 3 of 9

  1. Searching a linear data structure, such as an array, can be as simple and straightforward as checking through every value until you find what you are looking for. A sequential search, also known as a linear search, involves starting at the beginning of a list or sequence, sorted or not, and searching one-by-one through each item, in the order they exist in the list, until the value is found.

  2. This unsophisticated approach is appropriate for small lists or unordered lists.

  3. The order of a sequential search is linear, O(N).

 

Main   Previous Next
Contact
 © ICT 2006, All Rights Reserved.