Bounded Linear Search ctd.
If statement
indicates if the element
is found or if the search
space is exhausted
If (Array[i] == x)
{ cout << “Element found”;
}
else // (i <N))
{ cout << “Element not found”;
}
}
Previous slide
Next slide
Back to first slide
View graphic version