Arrays & Searching Arrays Flashcards
1
Q
How are arrays defined?
A
A collection of datatypes of similar values.
2
Q
What is the sequential search algorithm called?
A
Linear or serial search.
3
Q
What is binary search?
A
Searches a sequence much faster by dividing the sequence in half, only focusing on the half with the range until the target is found.
4
Q
Under what condition can binary search work?
A
The array must be sorted.