Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 898 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 898 Bytes

Sorting-Visualizer

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Cycle Sort
  • Quick Sort
  • Merge Sort

Video

sv.mp4

Usage

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>;

Build

$ git clone https://github.com/Karan-Semwal/Sorting-Visualizer
$ cd Sorting-Visualizer
$ mkdir build
$ cmake -S . -B build
$ cmake --build build
$ ./sv_app