5

Github GitHub - sadanandpai/sorting-visualizer: Sorting Algorithms Visualizer

 3 years ago
source link: https://github.com/sadanandpai/sorting-visualizer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Sorting Visualizer

Responsive visualizer built using React for popular algorithms

See it in action


This repo is an attempt to help in learning popular sorting algorithms by visualization

Helps to

  • understand the working of sorting algorithm
  • check total swaps required
  • check total comparisions
  • compare algorithms side by side
  • know the time taken (time is just an approximate unit for comparision)

Features

  • Sort any given array of 3 digits positive integers
  • Alter the speed of execution
  • Start, pause and reset the execution
  • Generate random array of numbers of sorting

Technologies

Features built using

  • Animations are done using pure CSS and uses FLIP principle
  • Flex is used for array display and manipulation of positions (flex order property)
  • JavaScript async generators are used heavily for the controlled execution of algorithms

Run in your local

  • git clone https://github.com/sadanandpai/sorting-visualizer.git
  • npm install (after navigating inside the directory)
  • npm run dev

Contributing Guide

If you want to contribute, improve or fix bugs in this repo, then check out the Contributing Guide

License

This repository is MIT licensed. Read more


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK