Skip to content

unary1/sort-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sort-visualizer

Various sorting algorithms visualized.

Currently included algorithms:

  • Bubble Sort
  • Quick Sort (LR ptr)
  • Insertion Sort
  • Merge sort (top-down)

Keybindings

Note: all these bindings have a GUI button equivalent.

  • p, space - pause/play
  • r - restart
  • left, right - cycle algorithms
  • up, down - change number of elements
  • period, comma - change delay

Dependencies

  • SDL2
  • SDL2_ttf
  • SDL2_gfx
  • CMake

Build:

mkdir build && cd build && cmake .. && make

Run:

./sdlsort

License

This program is free software released under the MIT license. For the full text of the license, see the 'LICENSE' file.

Liberation-Sans font included in the /res directory is licensed under the OFL v1.1 license.

About

Sorting algorithms visualization in C & SDL2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors