Next: Algorithm
Up: DESIGN AND ANALYSIS
Previous: DESIGN AND ANALYSIS
- Problem:
- Given an array
, containing
DISTINCT entries, find the index of
, if
, else return 0.
- Input:
- array
, array size
, search item
.
- Output:
- If
then index of
in
, else 0.
- Algorithm:
- .
Abstract Level Description: Scan
left to right looking for
in
& return index.
Subsections
Sushil_Prasad
2012-08-23