Giter Site home page Giter Site logo

push_swap42's Introduction

push_swap42

Description:

This repository contains a program written in C that implements a sorting algorithm to arrange a stack of integers in ascending order using a limited set of stack operations. The push-swap algorithm aims to efficiently sort the elements in Stack A while adhering to specific constraints on memory usage and operation counts.

Key Features:

Implementation of a sorting algorithm using a limited set of stack operations (sa, sb, ss, pa, pb, ra, rb, rr, rra, rrb, rrr). Two stacks are utilized: Stack A (the initial unsorted stack) and Stack B (an auxiliary stack used for sorting). Focuses on minimizing the number of operations required to sort Stack A in ascending order. Emphasizes optimization and efficiency in sorting algorithms, considering memory usage and operation counts. Interactive and configurable, allowing users to input integers and observe the sorting process.

Purpose:

Developed as an algorithmic challenge/project to explore sorting techniques and algorithm design using limited operations. Encourages understanding of various sorting algorithms and their implementation in a constrained environment. Aims to enhance problem-solving skills, algorithm optimization, and efficient use of available resources.

Chosen Algorithm:

Usage:

Clone the repository and compile the C source code using a compatible C compiler. Execute the compiled program, providing a set of integers or generating random integers to observe the sorting process. Observe the output to analyze the efficiency and number of operations used for sorting.

Note:

This repository contains a solution specific to the push-swap project requirements and may be part of an educational course or coding challenge. Contributions, enhancements, or alternative sorting algorithms using the limited set of operations are welcomed.

push_swap42's People

Contributors

ouzzhamza avatar

Stargazers

G44R4 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.