Skip to content

jayanth100798/Sorting-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sorting Visualizer

A simple C++ application using SFML to visualize different sorting algorithms.

Features

  • Supports Bubble Sort, Selection Sort, Insertion Sort, Quick Sort, and Merge Sort.
  • Graphical visualization of sorting steps.
  • Option to shuffle the dataset and choose sorting algorithm again.
  • Highlights active comparisons in red.

Installation

Prerequisites

  • SFML Library installed on your system
  • g++ compiler

Compile and Run

# Compile the program
 g++ -o sorter main.cpp -lsfml-graphics -lsfml-window -lsfml-system

# Run the program
./sorter

Usage

  1. Run the executable.
  2. Choose a sorting algorithm from the menu.
  3. Watch the sorting process in real-time.
  4. Shuffle and choose another algorithm if needed.
  5. Exit when done.

Screenshot

Sorting Visualizer

License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages