AQA A2 Computing 2.6 Searching and sorting Flashcards

1
Q

Linear search

A

this search method starts at the beginning of the list and compares each element in turn with the required value until a match is found or the end of the list is reached

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

Bubble sort

A

during a pass through the list, neighbouring values are compared and swapped if they are not in the correct order. Several passes are made until one pass does not require any further swaps

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

Quick Sort

A

The list is split into two parts, one containing values less than a pivot value and the other containing values greater than the pivot value.

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