Skip to main content
100%

Better-Only Search

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 9, 2014

A maze is generated using random traversal, then solved with “better-only search,” a best-first search variant restricted to north and east moves. The canvas renders the maze as a white grid on black, with gray fill marking explored cells and magenta highlighting the current best path. The solver uses a min-heap frontier and animation via d3.timer, updating ten cells per tick to show the search progression toward the goal.

AI-generated description

This maze is generated using random traversal, and then solved using “better-only search”, a variation of best-first search that only considers passages that move monotonically towards the goal (North and East). This algorithm typically fails.

gpl-3.0 Licensed

Similar vizzes