Git Product home page Git Product logo

visalgo's Introduction

visalgo

Visualizing an algorithm is a nice way to learn how the algorithm works. When I found clement's pathfinding visualizer, I was amazed. This is a complete rebuild of clement's pathfinding visualizer from scratch with plain HTML, CSS and JS.

This is the live project link

Algorithms implemented

  • Breadth First Search (unweighted) - The algorithm starts at the tree root, and explores all of the neighbor nodes at the present depth prior to moving on to the nodes at the next depth level.
  • Depth First Search (unweighted) - This algorithm starts at the root node and explores as far as possible along each branch before backtracking.
  • Dijkstra's Algorithm (weighted) - This algorithm traverses similar to BFS, however, it also keeps a track of distances from the start node to other nodes. It finds the shortest path from a given node to every other nodes in the graph.
  • A* Algorithm (weighted) - This algorithm is a modification of Dijkstra's Algorithm. It also takes into consideration heuristics for prioritizing the traversal path. It also finds the shortest distance of given nodes, however, due to the added heuristics, it is faster than Dijkstra.

Features added

  • Select algorithms and modify animation speed from the nav menu.
  • Add or remove weights and walls. Toggle between walls and weights in the grid menu. (Note: Weights are ignored for unweighted algorithms.)
  • Move around StartNode and EndNode.

NOTE: For weighted algorithms, normal node has the weight of 1 and weighted node has the value of 5.

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.