A* 알고리즘과 Dijkstra 알고리즘의 MATLAB 및 C 언어 구현
A* 알고리즘 MATLAB 구현
1. MATLAB 코드 구현
% Excel 파일에서 맵 읽기
map = xlsread('your_map_file.xlsx');
% 시작점과 종료점 설정
startPoint = [1, 1];
endPoint = [size(map, 1), size(map, 2)];
% A* 알고리즘 핵심 코드
openSet = [startPoint];
cameFrom = containers.Map();
gScore = containers.Map();
gScore(startPoint) = 0;
...
5월 29일 17:36에 게시됨