Git Product home page Git Product logo

sorting-visualization's Introduction

Sorting Visualization

There is a preview on sorting.squidspirit.com, which is set up with GitHub Pages.

Description

A visualization of several sorting methods. The followings are the sorting methods supported currently.

  • Bubble Sort

  • Insertion Sort

  • Merge Sort

  • Quick Sort

  • Heap Sort

Usage

First Look

Screenshot Init

  • Ckicking the button top-right will start the sorting.

  • The height of the strips represents the value for the array to be sorted, which is seperated from 1 to 50 randomly by default.

Sorting

Screenshot Init

  • A step means a comperation or swapping operation.

  • Every step costs 10 ms by default.

Query Parameters

  • quantity: The quantity of the strips. Default value is 50.

  • interval: The interval time between steps in millisecond. Default value is 10.

For example, if you want to set the interval as 100, you can adjust the url as sorting.squidspirit.com/?interval=100; if you want to set the interval as 5 and the quantity as 150, the url should be set as sorting.squidspirit.com/?interval=5&quantity=150

Development

  • Framework: Next.js.

  • Run yarn install to install the dependencies.

  • Run yarn run dev to set up a development server at localhost:3000.

sorting-visualization's People

Contributors

an920107 avatar

Stargazers

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