Coder Social home page Coder Social logo

bookmanager-template's Introduction

BookSorter

BookSorter is a Python program that visualizes different sorting algorithms using a stacked bar chart representation, making the bars resemble stacked books. It provides a visual demonstration of how the sorting algorithms work and how they rearrange the elements in an array.

Installation

  1. Clone the repository: https://github.com/Elie-Renneson/BookManager-Template

  2. Navigate to the booksorter directory: cd booksorter

  3. Install the required dependencies: pip install -r requirements.txt

Usage

To run the sorting algorithm and visualize the sorting process, use the following command:

python3 run_test.py <path_to_sort_script> <sort_function_name>

  • <path_to_sort_script>: The path to the Python file containing the sorting function implementation.
  • <sort_function_name>: The name of the sorting function to be executed.

For example, to run the Quick Sort algorithm, you can use the following command:

python3 run_test.py ../quick_sort/quick_sort.py quick_sort

Make sure to replace <path_to_sort_script> with the actual path to your sorting script and <sort_function_name> with the name of the sorting function within the script.

The program will generate a graph representing the initial state of the array and an animation showing the sorting process. Additionally, the execution time for the sorting process will be displayed.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details. You can use this README template as a starting point and customize it based on your specific needs and the features of your BookSorter project.

bookmanager-template's People

Contributors

elie-renneson 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.