BONUS: SEARCHING ALGORITHMS Flashcards

1
Q

what is a bubble sort

A

move through the list in order
if not, swap and go back to start

repeat until no swaps needed

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

what is a merge sort

A

divide and conquer split into lists until they each contain 1 element
repeatedly merge and sort until only 1 list

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

what is an insertion sort

A

divide into sorted and unsorted
move in one at a time
inefficient

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

what is a binary search

A

requires data to be in order
more efficient

begins at mid point
higher lower
repeats

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