Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vbrazhnik/push_swap

School 42 project // Sorting algorithm using two stacks
https://github.com/vbrazhnik/push_swap

42 42projects 42school born2code c sorting sorting-algorithms unitfactory visualization

Last synced: 2 months ago
JSON representation

School 42 project // Sorting algorithm using two stacks

Awesome Lists containing this project

README

        

# Push_swap

Push_swap is a School 42 project. The purpose of this project is to create sorting algorithm.

[`push_swap.en.pdf`](/push_swap.en.pdf) is the task file.

You can check [wiki-page](../../wiki/Algorithm) if you want to read description of created algorithm.

### Benchmarks

To test my `push_swap` I used [own bash script](benchmark.sh).

Result of solving 10 000 cases with **100 numbers**:

![benchmark_100](/images/benchmark_100.png)

Result of solving 10 000 cases with **500 numbers**:

![benchmark_500](/images/benchmark_500.png)

### Bonuses

Created `checker` has two additional modes:

* `-v` — verbose mode
* `-c` — color mode


checker (verbose mode)
checker (verbose and color mode)

Also this project has a simple visualizer. **(macOS is only supported)**

![visualizer](/images/visualizer.png)

### How to clone?

This repository includes submodule. So if you want to clone it, you can use the following command:

```
git clone --recurse-submodules
```

If you will use `git clone ` instead of, you will get the empty `libft` folder.