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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly