Programming Concepts 006 Flashcards

1
Q

Bubble sort

A

check first the check second if second is smaller then first switch them

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

Merge sort

A

first separate them into duos then singles and then combine them in order

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

Insertion sort

A

separate into sorted que and unsorted que. Put each next one individually from unsorted to sorted que by checking if the one you are about to put bigger or smaller then the previus one then moving it back enought where it isnt as big as the one before it or bigger then the one before it.

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