- Searching refers to determining whether an elements is present in a given list of elements or not.
- If the element is found to be present in the list then the search is considered as successful, otherwise it is consider as an unsuccessful search.
- The search operation returns the location or address of the element found.
Searching Techniques
To search an element in a given array,it can be done in following ways,
- Sequential search (or) linear search.
- Binary search.
No comments:
Post a Comment