2026-rff_mp/kolesovve/task2/docs/data/result.py

21 lines
716 B
Python
Raw Normal View History

2026-09-04 22:23:16 +00:00
import csv
results = [
["maze", "strategy", "time_ms", "cells visited", "path length"],
["small_maze", "BFS", 0.333, 55, 15],
["small_maze", "DFS", 0.150, 50, 25],
["small_maze", "A*", 0.443, 49, 15],
["medium_maze", "BFS", 7.031, 1606, 95],
["medium_maze", "DFS", 1.302, 599, 299],
["medium_maze", "A*", 2.205, 430, 95],
["big_maze", "BFS", 14.727, 4246, 195],
["big_maze", "DFS", 2.003, 687, 281],
["big_maze", "A*", 2.471, 341, 195],
["no_wall_maze", "BFS", 0.352, 64, 15],
["no_wall_maze", "DFS", 0.239, 64, 29],
["no_wall_maze", "A*", 0.565, 64, 15],
]
with open("results.csv", "w", newline="") as f:
writer = csv.writer(f)
writer.writerows(results)