4.2.1 Flashcards

(4 cards)

1
Q

What is Sequential Search (Linear Search)?

A

Go through each item one by one until you find the target or reach the end.
πŸ” Simple, but slow for large lists.

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

What is Binary Search?

A

Repeatedly divide a sorted list in half to find the target.
⚑ Much faster, but only works on sorted lists.

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

What is Bubble Sort?

A

Compare and swap adjacent elements until the largest β€œbubbles” to the end.
πŸ” Repeats until the list is sorted.

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

What is Selection Sort?

A

Find the smallest element and move it to the front. Repeat for the rest.
βœ… Builds the sorted list step by step.

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