Coder Social home page Coder Social logo

sorting-visualizer's Introduction

Sorting Visualizer

Function Descriptions

  1. colors.py

    In colors.py we will store some hexadecimal values of colors as variables. We will use these colors in our project.

  2. main.py

    main.py will be our main executable file that will run our project. We will import all packages and modules in this file. First, we will import some stuff and set up a basic interface.

    • 2.1 drawData()
      This function will convert the elements of data[] into vertical bars and draw them into the window.

    • 2.2 generate()
      It will reate an array with random values with the help of random module. After creating the array we will store them in data[]. Then we will call the drawData() function from this function.

    • 2.3
      Now the program will create a random array on the window every time we hit the Generate Array button.

    • 2.4 set_speed()
      This function will determine how fast or slow we want to see the sorting comparisons.

    • 2.5 sort()

  3. bubbleSort.py
    The bubble sort algorithm to sort an array.

  4. mergeSort.py
    The merger sort algorithm to sort an array.

sorting-visualizer's People

Contributors

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