Servan42 / Sort

Personnal Project : Displays different sort algorithms (Bubble, Insertion, Cocktail Shaker, Merge) in the Unix terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sort Algorithm with Graphic Output

Description

This software is a personnal project that displays different sort algorithms (Bubble, Insertion, Cocktail Shaker, Merge) in the Unix terminal.

Requirements

I run this software with Ubuntu (Unix kernel), in the terminal. It contains system calls like system("clear"). You need to modifiy these calls if you want to run it on a different operating system. The software displays a graph that is 200 columns large and 55 lines high. If your screen is to small to display a graph that big, change thoses values in the source code, they are declared as constant. The software also displays colors in the terminal with lines like this one printf("\033[7m \033[0m");. If your terminal does not support this type of encoding, you can replace the colors with charaters by changing the value of the constant DISPLAY_COLOR to 0 in the source code.

Bonus

I added a little python script that does the same thing as the C programm, with pretty graphs and a benchmark at the end.

License and Maintainers

This software is a free software that is under the MIT license and is maintained by CHARLOT Servan. Any questions or suggestions send him an email: charlot.servan@gmail.com

About

Personnal Project : Displays different sort algorithms (Bubble, Insertion, Cocktail Shaker, Merge) in the Unix terminal.

License:MIT License


Languages

Language:C 69.4%Language:Python 29.2%Language:Makefile 1.4%