Git Product home page Git Product logo

alvito's Introduction

Alvito - An Algorithm Visualization Tool for Python

Alvito is a tool for creating sorting and search algorithm visualizations and saving them as GIFs. You can find the alvito class in the algorithm_visualizer.py.

Usage

You can run this project and create your own GIFs directly in the browser by clicking this button: Binder, or you can clone the project to your computer and install the required pip packages specified in the requirements text file.

pip install -r requirements.txt

Code Example

from algorithm_visualizer import alvito

avo = alvito()
avo.fps = 1
avo.xlable_fontsize = 12
avo.title_fontsize = 12

array = [1,18,16,2,9,6,12,4,19,17,14,3,10,20,5,13,8,11,15,7]

avo.bubbleSort(array)

The code above will generate the following GIF

Notebooks

Here are links to view the notebooks on nbviewer if GitHub should struggle with them.

Examples.ipynb
Algorithms.ipynb
Colors_and_Colormaps.ipynb

Algorithms

Algorithm support so far (more coming soon!):

  • Bubble Sort
  • Selection Sort
  • Insertion Sort

The code for the algorithms used in the tool comes from Problem Solving with Algorithms and Data Structures using Python. This is a great source to learn about algorithms and data structures, check it out!

Example GIFs





alvito's People

Contributors

bjarten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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