Algorithms and Data Structures-Searching Algorithms
Algorithms and Data Structures-Searching Algorithms
Advanced Level
CC By Jacob Zvirikuzhe
Objective(s)
Explain the steps of writing searching algorithm.
Write searching algorithms for linear and binary searches.
What is a searching algorithm?
• A search algorithm is the step-by-step procedure used to locate an array
element among a collection of elements. Examples of Searching
Algorithms are:
There is no 17 on the midpoint but the value on the midpoint is less than 17 so we
are quite sure that the lower portion does not have the value that we are looking for.
Binary Search