- Bubble Sort
- Selection Sort
- Insertion Sort
- Cycle Sort
- Quick Sort
- Merge Sort
sv.mp4
Edit Config.hpp to change algorithm and data in following way
// Config.hpp
...
inline std::vector<int> data_to_be_sorted =
{
// ... Data you want to visualize
};
// change sorting algorithm here
inline SORT algorithm_for_sorting = SORT::<CHOOSE_SORTING_ALGORITHM>;
$ git clone https://github.com/Karan-Semwal/Sorting-Visualizer
$ cd Sorting-Visualizer
$ mkdir build
$ cmake -S . -B build
$ cmake --build build
$ ./sv_app