Skip to content

Sorting visualiser written in cpp working in terminal with no gui library

Notifications You must be signed in to change notification settings

AhmedAmrNabil/TerminalSortingVisualiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithm Visualizer in C++

A simple terminal-based sorting algorithm visualizer built in C++.

Table of Contents

Introduction

This project is a terminal-based sorting algorithm visualizer written in C++. It displays the sorting process step by step in the terminal, allowing users to observe how different sorting algorithms work in real-time.

Features

  • Visualizes sorting algorithms in a terminal environment.
  • Supports multiple popular sorting algorithms.
  • Step-by-step execution to show how the array is modified.
  • Size of array can be determined by the terminal size
  • User can add custom delay between execution steps

Supported Algorithms

  • Quick Sort
  • Heap Sort
  • Merge Sort
  • Alternate Merge Sort
  • Insertion Sort
  • Bubble Sort
  • Selection Sort

Installation

  1. Clone the repo
git clone https://github.com/AhmedAmrNabil/TerminalSortingVisualiser.git
cd TerminalSortingVisualiser
  1. Compile using make
make compile
  1. Run from the bin directory
./bin/main

Usage

Once the program is running, follow the on-screen prompts to select a sorting algorithm and specify the delay between each sorting step. The visualizer will show the progress of the sort in real-time using symbols to represent array values.

About

Sorting visualiser written in cpp working in terminal with no gui library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published