SORTING ALGORITHMS
INTRODUCTION Two sorting algorithms are studied in this paper: bubble sort and quicksort. Bubble sort is a comparison-type algorithm. It compares the elements of the array two at a time. It starts comparing from left to right of the array elements. The element with the greater value is placed on the right, and then compared to the next element. This is done until the largest element is placed at the end of the array. At this point, the largest sorted element is considered sorted, while the rest of the elements are unsorted. The algorithm is repeated for the remaining ...