Algorithm 1 Linear-Search(A[1..n]A[1..n], vv)

1:for i=1i = 1 to nn do

2:if A[i]=vA[i] = v then

3:return i

4:end if

5:end for

6:return NILNIL