Skip to content

zachRadack/Fm_visualizer

Repository files navigation

Finite machine, Search visualizer

Github Page link: https://zachradack.github.io/Fm_visualizer/index.html
This is a step by step search visualizer. Capable of producing its own random graphs, making your own custom json graphs, or even just editing a random produced json!

I did this by breaking the typically searches so they only do a single itteration (with some technical expections).

This will only every do the next step when you hit "next step"

Shows even the distance finding aspect of Astar.

It will go step by step to show how each search algorithem works

Here is depth first search image

Here is Dijkstra image

Astar has 2 phases, one where it goes through showing distances of every node to the goal

image

Then it has the normal phase

image

the colors are

white = generic unnoticed node

Green (is observed)= its currently looking at this node.

blue (was computed)= this node is currently in the algorithem list of moves

red (visited)= this is the current path or for dfs and bfs, it means that is has visited it

purple (traversed) = it has traversed, this is not used by dfs or bfs.

Yellow (finding distance) - used by Astar

There is currently:

depth first search

breadth first search

Dijkstra

A star

Simulation mode

This program does not use D3, but rather my own custom made force layout. It is really not optimal or optimized. Node Simulation can be turned off, and it is off by default. beware of using it as of time of writting.

How to use

It is currently just an HTML file, run the HTML and your good.

Disclaimer

Due to how this was written, depth first search will always try to go with the latest move it has observered, which should usually always be whatever node is currently the highest number. Breadth first search has the inverse problem, though it seems to usually be less noticable.

About

Work In progress, meant to help teachers visualize search algorithems to teachers, step by step.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published