Basic Sorting Algorithms
Bubble Sort
- (Lโ List, iโ index, i starts at 1)
- Look at L[i] and L[i-1] if they are not sorted, swap locations
- Repeat as you increase i and until no swap occursInsertion Sort
Selection Sort
Complexity of Bubble, Insertion, and Selection Sort.
Last updated


