🧠 Algorithm Lab
Labirinti həll et, sonra BFS, DFS və A* alqoritmləri ilə nəticəni müqayisə et.
Tədqiqatda iştirak seçimi
Razılıq versən, yalnız ilk 3 tamamlanmış labirintinin nəticəsi avtomatik saxlanacaq. Sonrakı labirintləri istədiyin qədər oynaya bilərsən — nəticələri göndərilməyəcək. Təkrar göndərişləri məhdudlaşdırmaq üçün bu brauzerdə təsadüfi anonim kod saxlanır. Ad və e-poçt istənilmir.
Bu seçim bu brauzerdə yadda qalır və istənilən vaxt dəyişdirilə bilər. Yetkinlik yaşına çatmayanlar tədqiqat iştirakından əvvəl valideyn/qəyyum və ya məktəb qaydalarına əməl etməlidir.
Scientific Performance Analysis
Compare all three algorithms on the same maze.
Measured results
Bars show values from the current maze, not example data.
Experimental data
| Algorithm | Cells | Steps | Time (ms) |
|---|---|---|---|
| No measurements yet. | |||
Runtime is the median of 50 synchronous searches, excluding drawing and animation. Small times vary by device and browser.
Algorithm complexity & methodology
BFS
Breadth-first search explores in layers. Time O(V+E), space O(V). Optimal for unweighted graphs.
DFS
Depth-first search follows a branch before backtracking. Time O(V+E), space O(V). Not necessarily optimal.
A*
A* uses f(n)=g(n)+h(n) with Manhattan distance. Its worst-case time and space can grow exponentially with solution depth; performance depends on the heuristic and implementation.
The maze is a grid graph. Each walkable cell is a vertex and orthogonal moves are edges of cost 1. All algorithms receive the same maze; measurements are approximate and not a controlled benchmark. This implementation uses an array-backed priority queue for A* and an array queue for BFS.
Multi-maze research mode
Run BFS, DFS and A* on identical generated mazes, then export results for your portfolio.
Average results across mazes
| Algorithm | Mean explored | Mean path length | Median runtime (ms) |
|---|---|---|---|
| No experiments yet. | |||
Individual trials
| Trial | Algorithm | Explored | Path | Time (ms) |
|---|---|---|---|---|
| No experiments yet. | ||||
Each trial uses a deterministic maze seed. All three algorithms receive the same grid. Runtime is the median of 10 searches, excluding animation and rendering; measurements depend on the device, browser, and implementation. Export the raw data for further analysis.
For a rigorous benchmark, repeat on multiple devices and report limitations. A single experiment is not proof that one algorithm is always fastest.
İnsanların labirint həllini araşdırma / Player research
Razılıq verən oyunçuların tamamlanmış labirint nəticələri avtomatik göndərilir. Ayrıca göndərmə düyməsi lazım deyil.
Razılıq verən oyunçuların yalnız ilk 3 təsdiqlənmiş nəticəsi saxlanır. Eyni brauzerdə təkrarları məhdudlaşdırmaq üçün təsadüfi kod, serverdə isə onun hash-i və say saxlanır. Bu, unikal şəxsi təsdiqləmir. Ad və e-poçt istənilmir; texniki giriş logları ola bilər. Paylaşımı istənilən vaxt dayandıra bilərsən.
Tədqiqat və məxfilik məlumatları / Privacy & research policy
No completed game yet / Hələ oyun tamamlanmayıb.
İştirak seçimini gözləyir.