Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- java 기술면접
- 백준 16235
- spring cloud
- JVM
- with recursive
- springboot
- 프로그래머스
- MSA
- Spring Boot
- 백준 16236
- 백준 19238
- MySQL
- sql 기술면접
- 백준 17626
- spring oauth
- 파이썬
- 백준 15685
- java
- Spring
- 백준 파이썬
- re.split
- spring security
- 백준
- 백준 17779
- Kotlin
- Coroutine
- JPA
- 백준 16719
- 프로래머스
- 웹어플리케이션 서버
Archives
- Today
- Total
목록다익스트라 (1)
시작이 반
다익스트라(Dijkstra)
필요 항목 PriorityQueue graph[][] dist[] ex) 양방향 Vertex = n Edge[][] = [[1, 2, 1], [2, 3, 3], [5, 2, 2], [1, 4, 2], [5, 3, 1], [5, 4, 2]] (u, v, cost) 다익스트라는 2차원 배열을 선언하여 graph[u][v] = cost 를 저장한다. (벨만포드는 edge(u, v, cost)만 보고 2중 반복문) int[][] graph = new int[n][n]; 양방향이기 때문에 graph[u][v] 와 graph[v][u] 를 둘다 채워준다. for( int[] edge... Edge ){ int u = edge[0]; int v = edge[1]; int cost = edge[2]; graph[u][..
알고리즘/활용 방법
2021. 10. 16. 02:29