compares each index of our array and starts at the first index.
Quicksort
starts with a piviot and then separates our array into 2 parts: the first part is what is smaller than the piviot, and the second part is what is larger than the piviot, then they put it back together after it is sorted.
Selection sort
compares each index of our array and starts at the first index.
Quicksort
starts with a piviot and then separates our array into 2 parts: the first part is what is smaller than the piviot, and the second part is what is larger than the piviot, then they put it back together after it is sorted.