项目作者: Servan42

项目描述 :
Personnal Project : Displays different sort algorithms (Bubble, Insertion, Cocktail Shaker, Merge) in the Unix terminal.
高级语言: C
项目地址: git://github.com/Servan42/Sort.git
创建时间: 2018-02-17T19:24:34Z
项目社区:https://github.com/Servan42/Sort

开源协议:MIT License

下载


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