Blocked No Path
20x20 fixture
Status
No path
Path cost
n/a
Optimal cost
n/a
Optimality
n/a
Nodes expanded
200
Edges relaxed
740
Frontier max
67
Benchmark Family
Deterministic 4-neighbor grid benchmarks across obstacles, weighted terrain, no-path cases, and start/goal patterns.
Generated
Apr 28, 2026, 12:07 PM
Measured
108
Skipped
12
Failures
0
Algorithms
5
Grid profiles
8
Benchmarks measure specific local JavaScript implementations on deterministic inputs. Results depend on runtime, hardware, implementation details, and input shape. They are not universal algorithm rankings.
BFS-style methods skip weighted grids; greedy best-first search is validated for path validity but is not treated as optimal.
Readable implementations included in this run
Breadth-first search on unweighted 4-neighbor grids.
Dijkstra shortest path on nonnegative 4-neighbor grid costs.
A* grid search with Manhattan distance scaled by minimum traversal cost.
Greedy best-first grid search using Manhattan distance; not guaranteed optimal.
Bidirectional breadth-first search on unweighted 4-neighbor grids.
Fixture coverage in this family
Fixture coverage in this family
Careful takeaways from the generated benchmark data
Static previews from the existing chart-ready benchmark exports. These charts are read-only summaries, not live benchmark execution or universal rankings.
Median runtime by grid size for compatible algorithms on deterministic unweighted obstacle grids.
5 series, 15 plotted points. Unit: median ms.
BFS-style methods are included here because this fixture is unweighted.
Search effort by grid size for the same deterministic obstacle fixture.
5 series, 15 plotted points. Unit: nodes expanded.
Greedy Best-First may expand fewer nodes but is not guaranteed to return optimal paths.
Path cost divided by optimal cost on weighted terrain. A ratio of 1.0 matches the validated optimum.
3 series, 9 plotted points. Unit: optimality ratio.
A* and Dijkstra are checked against optimal cost; Greedy Best-First is only a heuristic baseline.
Nodes expanded when the blocked fixture has no valid route from start to goal.
5 series, 15 plotted points. Unit: nodes expanded.
No-path cases require proving disconnection or exhausting reachable search space.
Small 20x20 fixtures show how different pathfinding implementations move through the same grid. These are precomputed benchmark artifacts, not live browser execution.
Each card uses the same selected implementation when overlay data is available.
Profiles shown
8
Selected
A*
Compatible
8
No-path fixtures
1
BFS and Bidirectional BFS skip weighted grid overlays.
Dijkstra and A* are optimal under the tested nonnegative-weight conditions.
Greedy Best-First may return valid but non-optimal paths.
20x20 fixture
Status
No path
Path cost
n/a
Optimal cost
n/a
Optimality
n/a
Nodes expanded
200
Edges relaxed
740
Frontier max
67
20x20 fixture
Status
Path found
Path cost
38
Optimal cost
38
Optimality
1
Nodes expanded
76
Edges relaxed
258
Frontier max
36
20x20 fixture
Status
Path found
Path cost
38
Optimal cost
38
Optimality
1
Nodes expanded
39
Edges relaxed
84
Frontier max
10
20x20 fixture
Status
Path found
Path cost
19
Optimal cost
19
Optimality
1
Nodes expanded
20
Edges relaxed
39
Frontier max
3
20x20 fixture
Status
Path found
Path cost
38
Optimal cost
38
Optimality
1
Nodes expanded
106
Edges relaxed
335
Frontier max
38
20x20 fixture
Status
Path found
Path cost
2
Optimal cost
2
Optimality
1
Nodes expanded
3
Edges relaxed
8
Frontier max
6
20x20 fixture
Status
Path found
Path cost
162
Optimal cost
162
Optimality
1
Nodes expanded
322
Edges relaxed
990
Frontier max
23
20x20 fixture
Status
Path found
Path cost
61
Optimal cost
61
Optimality
1
Nodes expanded
261
Edges relaxed
1,011
Frontier max
58
These overlays are compact previews from 20x20 fixtures. They are meant to explain benchmark behavior, not replace the full benchmark report.
Scenario labels are local benchmark summaries, not universal recommendations.
| Scenario | Algorithm | Detail |
|---|---|---|
| Fastest optimal unweighted | BFS Grid | Lowest average rank among compatible optimal unweighted cases. |
| Fastest optimal weighted | Dijkstra Grid | Lowest average rank among compatible weighted optimal cases. |
| Fastest heuristic | Greedy Best-First Grid | Lowest average rank in the heuristic pathfinding group; not an optimality claim. |
| Fewest median nodes expanded | Greedy Best-First Grid | Median nodes expanded: 99. |
| Best path quality | Dijkstra Grid | 0 non-optimal paths; worst ratio 1. |
| No Path fastest | BFS Grid | blocked-no-path 20x20. |
| Safest general optimal baseline | Dijkstra Grid | Runs on unweighted and nonnegative weighted grids in this suite, with optimality validation. |
Optimality is checked where an optimal cost is available; greedy behavior is called out separately.
| Algorithm | Path cases | Optimal | Non-optimal | Worst ratio |
|---|---|---|---|---|
| BFS Grid | 15 | 15 | 0 | 1 |
| Dijkstra Grid | 21 | 21 | 0 | 1 |
| A* Grid | 21 | 21 | 0 | 1 |
| Greedy Best-First Grid | 21 | 15 | 6 | 1.81 |
| Bidirectional BFS Grid | 15 | 15 | 0 | 1 |
Search effort metrics are local implementation measurements for the generated fixtures.
| Algorithm | Median nodes | Median edges | Frontier max | Node ratio |
|---|---|---|---|---|
| BFS Grid | 353 | 1,104.5 | 17.5 | 0.389 |
| Dijkstra Grid | 535.5 | 1,513.5 | 29.5 | 0.626 |
| A* Grid | 199.5 | 709 | 54 | 0.19 |
| Greedy Best-First Grid | 99 | 209 | 34 | 0.04 |
| Bidirectional BFS Grid | 298 | 774.5 | 25.5 | 0.364 |
These cases show valid paths where the heuristic baseline did not match the optimal cost.
| Profile | Size | Path cost | Optimal | Ratio |
|---|---|---|---|---|
| Weighted Terrain | 100x100 | 534 | 295 | 1.81 |
| Weighted Terrain | 50x50 | 237 | 141 | 1.681 |
| Weighted Terrain | 20x20 | 94 | 61 | 1.541 |
| Weighted Obstacles | 100x100 | 1,013 | 870 | 1.164 |
| Weighted Obstacles | 20x20 | 185 | 162 | 1.142 |
| Weighted Obstacles | 50x50 | 484 | 439 | 1.103 |
Context for interpreting this family
Generated benchmark artifacts used by this public page
Scope boundaries for this benchmark family