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 | 29 | 30 |
Tags
- 불리안
- 조건문 큰 수부터 입력받아야하는 이유
- index()
- pop()
- insert()
- 그룹 # 그룹 해체 # 단축키 #figma #Figma
- langchain
- Python
- a=1
- Napkin AI
- 변수
- 조지 불
- html
- del()
- 파이썬
- 바이브코딩
- null # undefined
- Ollama
- 부스트캠프
- 성적 입력받기
- 정보를 담을 수 있는 그릇
- 귀도 반 로섬
- 변수와 입출력
- 리스트와 차이점
- input()
- 딥러닝
- 입출력
- 변할 수 있는
- Java Script # == # === # difference # 차이
Archives
- Today
- Total
I about me
[기말고사] 6-3. BFS vs. DFS 본문
| BFS | DFS | |
| queue(FIFO) 부모의 관계를 체크 |
stack(FILO) Back edge를 신경(=사이클) |
|
| - 앞 친구 이웃 다 넣음? - 걔 빼고 - 또 앞 친구 이웃 다 넣음? |
- 깊숙히 - undirected graph → tree edge & back edge - directed graph → tree, forward, back, cross edge // 코드 이해 |
|
| // 코드는 cheating paper에 넣을 것 | // 코드는 cheating paper에 넣을 것 | |
| 1. Shortest path on unweighted graph, undirected // 코드 2. Finding Connected components // 코드 3. Two-coloring graphs (biopartite) 부모랑 반대, 같은 색끼리 연결 x // 코드 |
1. Finding Cycle 2. Articulation Vertices 3. Topological Sorting (Dag) 4. Strongly Connected Components |
'Algorithm > Lecture note' 카테고리의 다른 글
| [기말고사] 6-2. 인접 메트릭스 vs. 인접 리스트 (0) | 2024.06.10 |
|---|---|
| [기말고사] 6-(1). 그래프 종류 (0) | 2024.06.05 |
| [기말고사] 5. Heap and Greedy Approach (0) | 2024.06.03 |
| [중간고사] 4. Dynamic Programming (1) | 2024.04.28 |
| [중간고사] 3-(2). Sorting - Merge Sort (1) | 2024.04.28 |