Skip to content

Visualisation of sorting algorithms in real time with sound

Notifications You must be signed in to change notification settings

dj1vs/sorting-algs-visualisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sorting-algs-visualisation

command-line tool to view sorting algorithms visualisation

Preview video

Video preview

Usage

General options:  

  -h [ --help ]         Show help. 

  -a [ --alg ] arg      Sorting algorithm to perform. 

  -c [ --count ] arg    Amount of bars to be sorted. 

  -w [ --wait ] arg     Time to wait in microseconds after bar print.

Example:

./sorting-algs-visualisation -a quick -c 1000 -w 100

Available algorithms

  • Bubble sort
  • Insertion sort
  • Selection sort
  • Merge sort
  • Quick sort
  • Stooge sort
  • Gnome sort
  • Bogo sort

Dependencies

  • gcc
  • sfml
  • cmake
  • boost

Installation

git clone https://github.com/Djivs/sorting-algs-visualisation.git  
cd sorting-algs-visualisation  
sh build.sh

Clean build

sh clean.sh