Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.29 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.29 KB

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.