2.1 Linear Search Flashcards
1
Q
How does a linear search work?
A
- Starting from the beginning of a data set, each item is checked in turn to see if it is the one being checked for
2
Q
What are the features of a linear search?
A
- Doesn’t require the data to be set in order
- Will work on any type of storage device
- Can be efficient for smaller data sets
- Is very inefficient for large data sets