Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박권수
/
Algorithm_HW5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2020-11-01 18:51:00 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
af11bfc97b727a8bda2958c0b71316635579c695
af11bfc9
1 parent
9f65b52f
add touch, length, remark
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
HW5_박권수_2015104173.py
HW5_박권수_2015104173.py
View file @
af11bfc
...
...
@@ -63,6 +63,13 @@ def Kruskal(graph) :
def
dijkstra
(
w
)
:
n
=
len
(
w
)
#touch[i] = v1에서 vi로 가기 위한 최단 경로상의 마지막 정점, 즉 v(i-1)
touch
=
list
()
#length[i] = v1에서 vi로 가는 현재 최단 경로의 길이
length
=
list
()
for
i
in
range
(
1
,
n
)
:
...
...
Please
register
or
login
to post a comment