Git Product home page Git Product logo

bfs-visualizer's Introduction

Breadth First Search Visualizer

Visualizing Breadth First Search Algorithm which is an algorithm that traverses or searches tree data structures and graphs. The algorithm starts at the root of a tree and follows each branch as far as it can, then backtracks until it encounters an unexplored path, and explores it. In simple words, breadth-first search starts by the exploration of the graph to its deepest point. When the deepest point is reached, it backtracks to a previous unex- plored neighbor. This process is then repeated until the whole graph is explored. If an isolated vertex is identified to be unvisited by the end of the process, BFS would be carried again starting from that vertex.

Running BFS Visualizer

To run BFS-Visualizer, pip install using:

git clone https://github.com/omarrayyann/BFS-Visualizer
pip install pygame
run BFS-visualizer

How to use

1- Click on the screen to add new vertices
2- Connect any of the vertices together
3- Click Visualize 4- Click Clear once it's over and start again!

Video Demo

https://youtu.be/ttaWmwfb5UY

Screenshots

Screenshot 1

Screenshot 2

bfs-visualizer's People

Contributors

omarrayyann avatar

Stargazers

Sıla Eşme avatar

Watchers

 avatar

bfs-visualizer's Issues

Algorithm Problem

This is not a DFS algorithm, it's like BFS algorithm. pop() should be written instead of pop(0).

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.