Skip to content

The-Phoenics/Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sorting algorithms visualizer built with SFML and C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published