Sorting algorithms
Well sorting, you know? the process of rearranging an array of objects by its key. The elements must be comparable so satisfying total ordering:
- reflexive: for all
v,v=v. - antisymmetric: for all
vandw, ifv<wthenw>v, and ifv=wthenw=v. - transitive: for all
v,wandx, ifv<=wandw<=xthenv<=x.
We're going to visit the following algorithms: