Chapter 3 Flashcards
Arranging the data in ascending or descending order is known as
sorting
If all the data that is to be sorted can be adjusted at a time in the main memory
Internal Sorting
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
External Sorting
consecutive adjacent pairs of elements in the array are compared with each other
bubble sorting
This procedure of sorting is called __ because elements ‘bubble’ to the top of the list.
bubble sorting
is a very simple sorting algorithm in which the sorted array (or list) is built one element at a time.
Insertion sort
inserts each item into its proper place in the final list.
Insertion sort
is conceptually the simplest sorting algorithm
Selection sorting
means combining two sorted lists into one-sorted list.
Merging
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.
merge sort
sorts by employing a divide and conquer strategy to divide a list into two sublists.
Quick sort
is very similar to that of the Insertion sort algorithm.
Shell sort algorithm