2026-rff_mp/romanovpv/task 2/docs/data/result.py

21 lines
713 B
Python
Raw Normal View History

2026-05-24 20:53:59 +00:00
import csv
results = [
["maze", "strategy", "time_ms", "cells visited", "path length"],
["small_maze", "BFS", 0.173, 15, 15],
["small_maze", "DFS", 0.198, 15, 15],
["small_maze", "A*", 0.195, 15, 15],
["medium_maze", "BFS", 7.228, 95, 95],
["medium_maze", "DFS", 1.361, 189, 189],
["medium_maze", "A*", 3.050, 95, 95],
["big_maze", "BFS", 18.487, 195, 195],
["big_maze", "DFS", 10.021, 497, 497],
["big_maze", "A*", 4.471, 195, 195],
["no_wall_maze", "BFS", 0.325, 15, 15],
["no_wall_maze", "DFS", 0.251, 29, 29],
["no_wall_maze", "A*", 0.396, 15, 15],
]
with open("results.csv", "w", newline="") as f:
writer = csv.writer(f)
writer.writerows(results)