Sorting Algorithm Visualiser using C and CSFML. Helps to visualise how different sorts works.

Project Name:

Sorting Algorithm Visualizer

About Project:

  • This is a Sorting Algorithm Visualizer implemented using C programming language with GUI.

  • It helps in visualising how different sorts work and also gives an idea of how fast they are.

  • Sorts included in this projects are :

    1. Bubble Sort
    2. Selection Sort
    3. Insertion Sort
    4. Quick Sort
    5. Merge Sort

How to run the code? (For Linux)

  • Install CSFML library from Here

  • For compiling and linking all the graphics to your file , for that use:

    gcc -Wall -O2 filename.c -lcsfml-graphics -lcsfml-window -o filename

    (-lcsfml-graphics to link executable with csfml-graphics library and -lcsfml-window with csfml-window library.)

  • Run the executable file, for that use : ./filename

    For Windows , Visual Studio is required, any suggestions on how to compile CSFML on windows are most welcome :).

Technologies Used:

  • C
  • CSFML

How it works?

  • The coloured line in the white bars shows on which element the sorting is taking place and how the element is getting sorted.
  • After doing sorting logically according to the respective sorts, it moves to next element.
  • Once the array is sorted, all the bars gets light up with different colour.

Working Application

Bubble Sort:

Insertion Sort:

Selection Sort:

Owner
Ritesh Narendra Chaudhari
Second Year Undergrad at College of Engineering, Pune.
Ritesh Narendra Chaudhari
Similar Resources

An unidentifiable mechanism that helps you bypass GFW.

trojan An unidentifiable mechanism that helps you bypass GFW. Trojan features multiple protocols over TLS to avoid both active/passive detections and

Dec 30, 2022

Patch for Titanfall 2 that helps prevent disconnects while the servers are being attacked by a DoS attack.

Titanfall2 DeltaBuf patch This patch for Titanfall 2 helps prevent disconnects while the servers are being attacked by a DoS attack. Disclaimer This i

Jan 8, 2023

Arduino-controlled bed that helps in reducing rate of disease infection by detecting whether a person accessed the safe space of a subject who is infected

Arduino-controlled bed that helps in reducing rate of disease infection by detecting whether a person accessed the safe space of a subject who is infected

Infection Control Bed BACKGROUND Spread of COVID-19 occurs via airborne parricels and droplets. People who are infected with COVID an release particle

Mar 17, 2022

Simple Software Application Package Installer for CachyOS which helps setting up & installing applications

cachyos-packageinstaller Simple Software Application Package Installer. Requirements C++20 feature required (tested with GCC 11.1.0 and Clang 13(clang

Jul 1, 2022

A video input (V4L2) to NDI converter that works with Raspberry Pi (32-bit and 64-bit), and Intel/AMD CPUs

V4L2 to NDI V4L2 to NDI is an application that connects to attached V4L2 devices and encodes the video signal into NDI It uses the NDI library, allowi

Dec 30, 2022

A ros package for robust odometry and mapping using LiDAR with aid of different sensors

W-LOAM A ros package for robust odometry and mapping using LiDAR with aid of different sensors Demo Video https://www.bilibili.com/video/BV1Fy4y1L7kZ?

Nov 2, 2022

Tests to check the determinism of the basic floating point arithmetic operations on different devices, using Unity and Rust.

Tests to check the determinism of the basic floating point arithmetic operations on different devices, using Unity and Rust.

This repo contains tests to check the determinism (consistency) of the basic floating point arithmetic operations (add, subtract, multiply, divide) on

Dec 20, 2022

General purpose power controller, capable of driving soldering irons using different voltages and probe types.

General purpose power controller, capable of driving soldering irons using different voltages and probe types.

All-purpose Power Micro Controller This general purpose power micro controller features: Wheatstone Bridge front-end New Texas Instruments INA823 inst

Dec 3, 2022

Add virtual monitors to your windows 10 device! Works with Oculus software, obs, and any desktop sharing software

License MIT and CC0 or Public Domain, whichever is least restrictive -- Use it AS IS - NO IMPLICIT OR EXPLICIT warranty This may break your computer,

Jan 6, 2023
Fix some extrinsic parameter importing problems. 6-axis IMU works now. Lidar without ring works now.

LVI-SAM-MODIFIED This repository is a modified version of LVI-SAM. Modification Add function to get extrinsic parameters.The original code assumes the

Dec 9, 2022
a work in progress try to make an IDE with the CSFML

EatSleepCode A work in progress for educational purpose. To help better understanding the CSFML lib. Installation clone this repo and do make Use case

Nov 20, 2022
HESS (Hyper Exponential Space Sorting) is a polynomial black-box optimization algorithm, that work very well with any NP-Complete, or NP-Hard problem

The original HESS (Hyper Exponential Space Sorting) is a polynomial black-box optimization algorithm, that work very well with any NP-Complete, or NP-Hard problem, at 2021 thanks to suggestions of Daniel Mattes, work like a complete algorithm.

Jan 18, 2022
Daily challenge on algorithm, using different languages.

??‍?? DailyChallenges Content General Information Setup Usage Languages Enhancements ?? General Information These Daily challenges are aimed at growin

Mar 7, 2022
A simple library that helps Android developers to execute JavaScript code from Android native side easily without using Webview.

AndroidJSModule A simple library that helps Android developers to execute JavaScript code from Android native side easily without using Webview. Insta

May 24, 2022
Some basic sorting algos

Sorting-Algos Some basic sorting algos HacktoberFest 2021 This repository consists of mezzo-level projects that undertake a simple task and perform it

Dec 13, 2022
The FLIP Fluids addon is a tool that helps you set up, run, and render high quality liquid fluid effects all within Blender, the free and open source 3D creation suite.

FLIP Fluids The FLIP Fluids addon is a tool that helps you set up, run, and render liquid simulation effects. Our custom built fluid engine is based a

Dec 22, 2022
Calleree helps to analyze Ruby's caller-callee relationships.

Calleree Calleree helps to analyze Ruby's caller-callee relationships. Note that this tool consumes memory and introduces additional overhead because

Oct 3, 2022
This project helps a person park their car in their garage in the same place every time.

garage-parking-sensor Description This project is developed to help a person park their car in their garage in the same place every time. Normally peo

Aug 18, 2022
A C++ Node.js module that helps gathering informations on segmentation fault

node-segfault-handler A C++ Node.js module that helps gathering informations on segmentation fault Supported Platforms Linux Linux Alpine Windows MacO

Dec 14, 2022