Inplementation of some basic sort algorithms and some simple tests.
Only for visual studio 2022 currently (msvc v143).
Based on C++ 20 standard.
- bubble sort (origin / stop when no swap happens / narrow the boundary/ narrow the boundary in both directions)
- insertion sort
- selection sort
- merge sort
- quick sort
- Hoare (primitive / randomly choose pivot / insertion sort)
- Lomuto (primitive / tail recursion optimization / randomly choose pivot / handel duplicated sequence)
- ...
Use template to generalize element type of input sequence (_RandIt
) and comparsion method (_Pred
).
Provide an integrated class for normal distribution data generation and uniform distribution data generation.
Provide an easy way to visualize the breif information of a sequence of data.
Provide an useful tool to record time cost of a certain block of codes.