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

https://github.com/andersonhsporto/ft-push-swap

Sort Data on a Stack, With a Limited Set of Instructions, Using the Lowest Possible Number of Actions
https://github.com/andersonhsporto/ft-push-swap

algorithm algorithm-implementations c linked-list linked-list-in-c merge-sort merge-sort-algorithm sorting-algorithms

Last synced: 4 months ago
JSON representation

Sort Data on a Stack, With a Limited Set of Instructions, Using the Lowest Possible Number of Actions

Awesome Lists containing this project

README

        

# ft-push-swap
![norminette](https://github.com/andersonhsporto/ft-push-swap/workflows/norminette/badge.svg)
### O objetivo deste projeto é ordenar números inteiros em uma stack utilizando um conjunto limitado de operações utilizando C.





Funções Permitidas

As funções permitidas no escopo deste projeto são:
```
• write
• read
• malloc
• free
• exit
```

Compile o programa utilizando **make**, o programa pode ser executado da seguinte forma:
```sh
./push_swap 9 8 7 6 5 4

ARG=`ruby -e "puts (1..100).to_a.shuffle.join(' ')"`; ./push_swap $ARG
```
## Visualização
Execução com 100 números aleatórios: *utilizando o visualizador em python [push_swap_visualizer](https://github.com/o-reo/push_swap_visualizer).




![mandatory](https://github.com/andersonhsporto/ft-push-swap/blob/main/gif/vis.gif)