Graph traversal & sampling-based planning explorer

Draw walls or mud on the grid, drag the start (S) and goal (G), then watch each method work.

Graph traversal searches the grid cells directly
Sampling-based planners build a random roadmap or tree in continuous space
Paint tool: click or drag on the grid
StartGoalFrontierExpanded / treePathMud
Expanded0Path length –Path cost –
MethodData structureOptimal?Uses weights?Uses heuristic?
BFSQueue (FIFO)Fewest steps onlyNoNo
DFSStack (LIFO)NoNoNo
DijkstraPriority queue on gYesYesNo
A*Priority queue on g + hYes (admissible h)YesYes
PRMRoadmap (fixed k), then any graph searchOptimal on the roadmap onlyEdge lengths (mud 5×)Depends on search
PRM*Roadmap (shrinking radius), then any graph searchOptimal as samples → ∞Edge lengths (mud 5×)Depends on search
RRTRandom treeNo (probabilistic)Path cost reportedGoal bias
RRT*Random tree with parent choice and rewiringOptimal as samples → ∞Yes (mud 5×)Goal bias