Skip to content

A visualizer of various sorting algorithms.

License

Notifications You must be signed in to change notification settings

shumaym/Sorting_Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Visualizer

This program provides a visual demonstration of various sorting algorithms.

Dependencies

  • g++
  • SDL2
  • SDL2_ttf
  • SDL2_image

Usage

Build with make, then run with ./sorting [OPTIONS]

Options:

  • -n N: Number of elements in the set (default: 50)
  • -d N | --frame-delay N: Delay in ms after the window is refreshed (default: 50)
  • --dimensions XxY: Screen dimensions (default: 1500x1000)
  • -h | --help: Display the help page
  • -s N | --sorting N: Sorting method to use (default: quicksort)
    • 0: Bubble sort
    • 1: Selection sort
    • 2: Insertion sort
    • 3: Quicksort
    • 4: Mergesort
    • 5: Heapsort
    • 6: Introsort
    • 7: Shellsort

About

A visualizer of various sorting algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published