Chapter 3 Flashcards

1
Q

Arranging the data in ascending or descending order is known as

A

sorting

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

If all the data that is to be sorted can be adjusted at a time in the main memory

A

Internal Sorting

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

When the data that is to be sorted cannot be accommodated in the memory at the same time and some has to be kept in auxiliary memory such as hard disk, floppy disk, magnetic tapes etc

A

External Sorting

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

consecutive adjacent pairs of elements in the array are compared with each other

A

bubble sorting

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

This procedure of sorting is called __ because elements ‘bubble’ to the top of the list.

A

bubble sorting

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

is a very simple sorting algorithm in which the sorted array (or list) is built one element at a time.

A

Insertion sort

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

inserts each item into its proper place in the final list.

A

Insertion sort

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

is conceptually the simplest sorting algorithm

A

Selection sorting

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

means combining two sorted lists into one-sorted list.

A

Merging

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

splits the array to be sorted into two equal halves and each array is recursively sorted, then merged back together to form the final sorted array.

A

merge sort

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

sorts by employing a divide and conquer strategy to divide a list into two sublists.

A

Quick sort

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

is very similar to that of the Insertion sort algorithm.

A

Shell sort algorithm

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