Skip to content

Instantly share code, notes, and snippets.

View Alfex4936's full-sized avatar
✏️
I may be slow to respond.

seok Alfex4936

✏️
I may be slow to respond.
View GitHub Profile
@Alfex4936
Alfex4936 / astar.py
Last active September 28, 2020 23:48 — forked from Nicholas-Swift/astar.py
A* 길찾기
from timeit import repeat
from statistics import mean
# If you wanna test the execution time
def runAlgorithm(maze, start, end):
setup_code = "from __main__ import aStar"
stmt = f"aStar({maze},{start},{end})"
times = repeat(setup=setup_code, stmt=stmt, repeat=3, number=10000)