Linear Search
- I'm thinking of a letter. Can anyone tell me (guess) what
letter?
- One good way to find it, is to ask me each letter in order.
- That's an exhaustive search.
- To a great extent, that's linear search.
- You step through all the pieces of data until you find the
one you want.
- The algorithm is a bit more specific, but that's basically it.
- In class excercise:
- Let's assume an array of 15 characters.
- Write a loop that set's a boolean value to true if the character
'c' is present.