ALGORITHM:Linear Search
1.Set K : = 1 & loc : = 0
2.Repeat step 3 & 4 while loc : = 0 &k < =="">
3. If (item = data[k])
loc : = k
Else
K = k + 1
Print “loc is the location of item”
Print “no. not found”
Q: Run the above algorithms A1 C++
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here