Data Journey

International Studies Grad. racing for AI Engineer

Download as .zip Download as .tar.gz View on GitHub
20 January 2021

Shortest Path

by mervyn

Motivation

Suwon to Busan: throws back the shortest path when input the starting and the end point.

Dijkstra’s Algorithm

Dijkstra’s algorithm solves the single-source shortest path problem

Strategy

Suppose that you are at vertex A

dijk

Accept (A, B) is the shortest path to B from A

dijk1

dijk2

At this point, we have the shortest distances to B and F

source “K-MOOC 허재필 교수님의 <인공지능을 위한 알고리즘과 자료구조: 이론, 코딩, 그리고 컴퓨팅 사고> 강좌의 13-1 그래프 최단경로 알고리즘 중(http://www.kmooc.kr/courses/course-v1:SKKUk+SKKU_46+2020_T1)”

back next

tags:

Comments

Post comment
Loading...

Share this: