Skip to content

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.

Notifications You must be signed in to change notification settings

shikarukitake/push_swap

Repository files navigation

Content

  1. Project description
  2. How to run
  3. Marks
  4. Bonus
  5. Python generator
  6. Resources

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.

How to run

You can compile whole project with

make

Or you can open project with CLion and load CMake Project

Marks

4/5 (less than 750 operations) - 100 numbers 
3/5 (less than 7500 operations) - 500 numbers

Bonus

-v -- vizualization flag
-c -- vizualization with colors
python random numerical sequence generator

Python generator

Tester generates sequence of numbers and run push_swap and checker

How to use:

./test.py start_number end_number count_of_tests [flags of your checker]

or

python3 test.py start_number end_number count_of_tests [flags of your checker]

Example:

EXAMPLE

Resources

https://medium.com/@jamierobertdawson/push-swap-the-least-amount-of-moves-with-two-stacks-d1e76a71789a

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages