Types of Searches and Sorts Flashcards

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

Linear Search

A

Linear Search is checking each element of the list one by one until you find the element you are looking for

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

Binary Search

A

Binary Search is an efficient algorithm that works by repeatedly dividing in half the portion of the list that could contain the item, until you’ve narrowed down the possible locations to just one.

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

Bubble Sort

A

Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.

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

Merge Sort

A

Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves.

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

Insertion Sort

A

Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands.

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