view DOCS.md @ 45:08ec3e96a02c

Change info files
author Dennis <dennis@denniscm.com>
date Fri, 11 Aug 2023 15:27:59 +0000
parents
children
line wrap: on
line source


# Table of Contents

1.  [Compile](#org5155f5d)
2.  [Run](#org4284749)
3.  [Notes](#orgfd96d06)

This project is inspired by the video of Timo Bingmann called [15 sorting algorithms in 6 minutes](https://www.youtube.com/watch?v=kPRA0W1kECg).

![img](https://denniscm.com/static/algo-animator-1.png)

![img](https://denniscm.com/static/algo-animator-2.png)


<a id="org5155f5d"></a>

# Compile

    mkdir build
    cd build
    cmake ..
    make

Currently I've only tested this project on Linux. However, I would like to prepare it so that it can be used on Mac and Windows. However, my cross-platform experience is almost non-existent. Maybe in the future I'll check how to do it.


<a id="org4284749"></a>

# Run

To customize the program you can pass the following arguments.

    ./algo_animator WINDOW_WIDTH WINDOW_HEIGHT RECTANGLE_WIDTH SPACE_BETWEEN_RECTANGLES

The default values are:

    WINDOW_WIDTH = 1920
    WINDOW_HEIGHT = 1080
    RECTANGLE_WIDTH = 5
    SPACE_BETWEEN_RECTANGLES = 1

Run the program in a window with width of 1920 pixels and height of 1080 pixels, fit the screen with rectangles with width of 50 pixels, and add a space between rectangles of 3 pixels.

    ./algo_animator 1920 1080 50 3

![img](https://denniscm.com/static/algo-animator-3.png)


<a id="orgfd96d06"></a>

# Notes

This project has not been designed to compare the speed of the algorithms side by side. The main objective is the visualization of the algorithms for educational purposes.