Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 838 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 838 Bytes

BubbleSort-Visualization

Visualizing Bubble Sort algorithm using C++ and SFML

Summary

This is a visualization/simulation of Bubble Sorting algorithm.
Here every line represents a number in the array of Lines, with height being a random number.
Swapping occurs between two adjacent lines depending on the larger number( bigger line in terms of height)
This algorithm has worst case complexity of O(n^2), where n represents the number of elements(or Lines in terms of this project)

How to Run (only for Linux)

Install SFML
Install make (command : sudo apt install make )
Run command : make F1=main.cpp

Output

output