일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- react
- Galera Cluster
- spring webflux
- 파이썬
- design pattern
- 컴퓨터구조
- C
- mongoDB
- Data Structure
- JavaScript
- c언어
- IT
- 디자인 패턴
- Kafka
- 알고리즘
- 자료구조
- MSA
- 네트워크
- OS
- 운영체제
- Proxy
- JPA
- redis
- Spring
- Algorithm
- 자바
- Heap
- MySQL
- Java
- 백준
Archives
- Today
- Total
목록Floyd (1)
시냅스
플로이드 알고리즘 C언어로 구현
플로이드 알고리즘 Floyd algorithm 모든 지점에서 모든 지점으로의 최단 경로를 모두 구하는 경우 꼭짓점 k를 두고, k를 경유할 경우를 원래의 값과 비교하여 더 짧다면 업데이트 한다. (i,j) > (i,k) + (k,j) 와 같은 꼴이다. 다이나믹 프로그래밍 기술에 의거한다. 구현이 쉽고 간단하지만 O(n^3) 시간복잡도가 높다. 구현 int INF = 99999999; int **arr_init(LinkedGraph *graph) { int **arr = calloc(graph->currentVertexCount, sizeof(int *)); ListNode *temp; for(int i = 0; i currentVertexCount; i++) arr[i] = calloc(..
알고리즘
2022. 6. 7. 15:32