1. Initialize searcharray, searchno, length.2. Initialize pos=0.3. Repeat step 4 till pos<=length.4. if searcharray[pos]=searchno return pos else increment pos by 1.