Giter Club home page Giter Club logo

bfs-algorithm-visualizer's Introduction

BFS-Algorithm-Visualizer

A command line application that acts as an algorithm visualizer for Breadth-First-Search

! The traversed nodes will point towards their parent nodes using arrows !

Commands:

  • neighb [row] [col] : will display all of the immediate neighbours of a given node
  • bfs [row] [col] : will run a BFS traversal starting from the node with the given coordinates
  • bfs_step [row] [col] : will run a step-by-step BFS traversal starting from the node with the given coordinates
  • bfs_tree [row] [col] : will pretty-print the resulting tree after executing the BFS traversal starting from the given node
  • path [row1] [col1] [row2] [col2] : will find and display the shortest path from one node to another using BFS; if the node cannot be reached (i.e. it is blocked by a wall), then the nodes will be coloured in red
  • perf : will analyze the complexity of the BFS algorithm, providing you with a detailed analysis as an output .html file
  • clear : will reset the grid to its initial blank state
  • exit : will terminate the program

Running bfs_step 6 2

Screen.Recording.2022-05-09.at.18.38.58.mov

Running bfs_tree 6 3

Screenshot 2022-05-09 at 18 41 01

Running path 5 10 3 15

Screenshot 2022-05-09 at 18 42 17

bfs-algorithm-visualizer's People

Contributors

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