Giter Site home page Giter Site logo

sadanandpai / sorting-visualizer Goto Github PK

View Code? Open in Web Editor NEW
668.0 6.0 167.0 4.35 MB

Algorithms Visualizers

Home Page: https://sadanandpai.github.io/algo-visualizers/

License: MIT License

HTML 0.30% JavaScript 0.89% TypeScript 89.84% SCSS 8.97%
sorting-algorithms sorting algorithms react reactjs datastructures javascript redux redux-toolkit bfs dfs maze-generator pathfinder

sorting-visualizer's Introduction

Algorithms Visualizers

Responsive visualizers built using React for popular algorithms

built with Codeium

cover
cover
cover Visualize the algorithms


Algorithms Visualizers

This repo helps in learning popular algorithms by visualization

Sorting Visualizer

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

Concepts

  • 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

Path finder

Helps to

  • understand working of different maze generation algorithms
  • understand working of different path finding algorithms
  • check the visits, path length and time taken

Features

  • Build any kind of custom 2D maze
  • Alter the speed of execution
  • Generate infinite mazes
  • Move the targets in live to see the changes

Technologies

Production libraries

Build libraries


Run in your local

  • git clone https://github.com/sadanandpai/algo-visualizers.git
  • cd algo-visualizers
  • npm install
  • 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

sorting-visualizer's People

Contributors

akshaybagai52 avatar alok4code avatar dependabot[bot] avatar mohdsaifulla avatar sadanandpai avatar tuttrue 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  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  avatar  avatar  avatar  avatar

sorting-visualizer's Issues

Additional Sorting Algorithms

Thank you for this visualisation. Really great work :-)

Would be nice to see the following represented also:

https://en.wikipedia.org/wiki/Comb_sort (improved on Bubble sort)
https://en.wikipedia.org/wiki/Shellsort (improves on Insertion sort)
https://en.wikipedia.org/wiki/Introsort (hybrid Quicksort/Heapsort)
https://en.wikipedia.org/wiki/Timsort (hybrid Mergesort/InsertionSort)
https://en.wikipedia.org/wiki/Block_sort
https://en.wikipedia.org/wiki/Bucket_sort
https://en.wikipedia.org/wiki/Radix_sort

BUG: site not loading on github pages

Describe the bug
the site isn't loading in the browser using the github page link.

Screenshots
Screenshot from 2021-06-21 17-22-11

Desktop (please complete the following information):

  • OS: ubuntu 20.04
  • Browser: Chrome

Addition of Algos

@TutTrue

I have revamped the code completely from scratch. The new codebase is now on the main branch.
Request you to raise a PR for the Algos that you had added before to the new one as well.

Problems after switching to react 18

Hi, thank you for this visualization.

After upgrading to react 18 and enabling Strict mode the animations stops working do you have any suggestions how to fix that?

display and highlight the algorithm

Hi, thank you for building this visualization tool.
Is there any possibility adding an extra feature of displaying the algorithm/code and highlighting the lines as they are executed apart from the visualization of the algorithm?

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.