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:53:10 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b783a2760902ce5f7e90c2b1036b9be706748798
b783a276
1 parent
af11bfc9
implement touch & length list
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
HW5_박권수_2015104173.py
HW5_박권수_2015104173.py
View file @
b783a27
...
...
@@ -65,10 +65,14 @@ def dijkstra(w) :
#touch[i] = v1에서 vi로 가기 위한 최단 경로상의 마지막 정점, 즉 v(i-1)
touch
=
list
()
touch
.
append
(
0
)
#length[i] = v1에서 vi로 가는 현재 최단 경로의 길이
length
=
list
()
length
.
append
(
0
)
for
i
in
range
(
1
,
n
)
:
touch
[
i
]
=
i
length
[
i
]
=
w
[
0
][
i
]
...
...
Please
register
or
login
to post a comment