Arrays & Searching Arrays Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How are arrays defined?

A

A collection of datatypes of similar values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the sequential search algorithm called?

A

Linear or serial search.

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Under what condition can binary search work?

A

The array must be sorted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly