Skip to content

๐ŸŒŠ A tool that can help visualize four different graph traversal algorithms (Dijkstra's , BFS, DFS, and A*) through simulating a boat โ›ต in the ocean attempting to avoid icebergs ๐Ÿ”๏ธ while trying to find the best path to the treasure ๐Ÿ†.

Notifications You must be signed in to change notification settings

KidusLegesse/AlgorithmVisualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Algorithm Visualizer Website โ›ต โš“

๐ŸšคLink to the website.

๐Ÿ—บ๏ธWebsite description: A tool that can help visualize four different graph traversal algorithms (Dijkstra's , Breadth-First Search (BFS), Depth-First Search (DFS), and A*) through simulating a boat โ›ต in the ocean attempting to avoid icebergs ๐Ÿ”๏ธโ„๏ธ while trying to find the best path to the treasure ๐Ÿ†.

๐ŸŒŠFeatures: Users can click on any open space in the ocean/map to place icebergs ๐Ÿ”๏ธโ„๏ธ which are obstacles for the boat. Clicking on an iceberg that is already placed will result in removing that particular iceberg. Along with that there is a drop down menu with all four of the algorithm options and once an algorithm is chosen there is a side panel (which can be toggled to be shown or hidden) that displays the exact implementation the algorithm is running. Furthermore once the user runs the simulation of an algorithm the path it found will be highlighted on the map with its unique color to help distinguish different paths (Dijkstra's ๐ŸŸ , BFS ๐ŸŸฃ, DFS ๐Ÿ”ด, A* ๐ŸŸข).

๐Ÿ—๏ธExplanation of each button:

๐Ÿ”€Randomize - Places the treasure and the boat on random points on the map (maintains a distance of at least 10 nodes between the two).

โชReset - Places the treasure and boat back to their original positions.

๐Ÿ”€Clear IceBergs - Removes all of the IceBergs that were placed.

๐ŸšซClear Path - Removes the highlighted path of previous algorithms to clean up the map.

โŒClear All - A combination of the other two clear buttons (clears everything of the map).

๐ŸƒRun - Starts the visualization of the selected algorithm.

๐ŸšฆStop - Run button transitions to a stop button once the algorithm is being visualized so clicking to will stop the simulation.

๐Ÿ”ง๐Ÿ”ฉLibraries and Tools: NodeJs, React, JavaScript, HTML, CSS, react-codemirror2, GitHub pages.

๐ŸšงAdditional information: While the algorithm is running unless the user clicks the stop button you cannot place any Icebergs, select another algorithm, and click any button aside from the Stop button. Also there is a swaying animation applied to the boat and IceBergs which also have a rippling animation to give the sense that they are floating in the water.

๐ŸŽจUser Interface:

Website Interface Screenshot

About

๐ŸŒŠ A tool that can help visualize four different graph traversal algorithms (Dijkstra's , BFS, DFS, and A*) through simulating a boat โ›ต in the ocean attempting to avoid icebergs ๐Ÿ”๏ธ while trying to find the best path to the treasure ๐Ÿ†.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published