Skip to content

📊 Some sort algorithms made with c++ used the lib sfml to view the sort order

Notifications You must be signed in to change notification settings

gleydson/SortingAlgorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Algorithms

C/C++ CI

This repository contains the implementation of several sorting algorithms.

The algorithms were constructed using the C++ language, in conjunction with a graphical library developed with SFML for visualization at runtime of the operation of the algorithms.

How to run

After doing the project clone, download the sfml library to your computer (only debian/ubuntu OS, check this link for other OS).

$ sudo apt install libsfml-dev

To run, you must modify the main.cpp file. It contains the main function that will contain several calls from other commented functions.

int main()
{
    ....

    // minimum_sort(vet);
    // quick_sort(vet, 0, vet.size());
    // bubble_sort(vet);

    ....
}

Just uncomment the one you want to view, after that, execute make to compile your code and an executable file named sort will be generated, just by running it.

$ make
$ ./sort

And ready! On the screen will contain instructions on how to handle the execution of the algorithm.

About

📊 Some sort algorithms made with c++ used the lib sfml to view the sort order

Topics

Resources

Stars

Watchers

Forks