Sorting and Searching
Sorting and Searching Sorting : needs to speed up searching operation in a list Type : 1.) Ascending 2.) Descending Sorting Algorithm : 1. Internal sorting All data to be sorted are loaded to RAM 2. External Sorting Sorting process using secondary storage (HDD) Kind of sorting : - Bubble Sort Compare two neighboring values. Compare and swap (if necessary) Also known as exchange sort void Bubble(int *DataArr, int n) { int i, j; for(i=1; i<n; i++) ...