Giter Site home page Giter Site logo

undessix / push_swap_42 Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 454 KB

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, I had to manipulate various sorting algorithms and choose the most appropriate solution(s) for optimized data sorting.

Makefile 4.69% C 85.87% Perl 1.41% Shell 8.04%

push_swap_42's Introduction

Push_Swap

Description

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, I had to manipulate various sorting algorithms and choose the most appropriate solution(s) for optimized data sorting.


Makefile

Makefile a the root allowed you to compile the libft, the chercker and the push_swap.

So you can run:

make libft
make checker
make push_swap

Or simply:

make

What's push_swap?

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, you will have to manipulate various sorting algorithms and choose the most appropriate solution(s) for optimized data sorting.


What's checker?

The checker will get as an argument the stack a formatted as a list of integers. The checker will then wait and read instructions on the standard input, each instruction will be followed by ’\n’. Once all the instructions have been read checker will execute them on the stack received as an argument.


⚠️ THE PART BELOW IS NOT THE RESULT OF MY WORK ⚠️
It comes from tharchen's github
I did make some changes, especially the adding the min and max values

A tester for Push_swap@42 - To see what's going on

This tester shows the performance of your push_swap program.


## How do I run this tester?

```bash
bash push_swap_tester/tester.sh [path-to-push-swap-dir] [stack-size 0R range] [nb_of_tests]

for example:

the following command will perform 100 testss with a stack of 100 integers

bash push_swap_tester/tester.sh ../push_swap 100 100

the following command will perform 100 tests with a stack of 100 integers, then 100 tests with a stack of 101 integers and then 100 tests with a stack of 102 integers

bash push_swap_tester/tester.sh ../push_swap 100-102 100

push_swap_42's People

Contributors

undessix avatar

Stargazers

estoffel avatar medyth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.