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 | 31 |
Tags
- 알고리즘
- predictive analysis
- 배열
- string
- baekjoon
- 파이썬
- 함수
- Deep Learning
- function
- array
- pointer
- Data Science
- 백준
- 포인터
- pass by reference
- assignment operator
- Python
- 문자열
- OOP
- 반복문
- raw data
- Class
- Object Oriented Programming
- C++
- 오블완
- 티스토리챌린지
- vscode
- Pre-processing
- const
- programming
Archives
- Today
- Total
Channi Studies
[Data Structure] Graph: Topological Sort 본문
Data Science/Data Structure & Algorithm
[Data Structure] Graph: Topological Sort
Chan Lee 2025. 5. 28. 05:02A topological sort of a directed, acyclic graph produces a list of graph's vertices such that for every edge from a vertex X to a vertex Y, X comes before Y in the list.
There can be more than one valid topoligcal sort. Again, the graph must be acyclic and riected in order to apply topological sorting.

The time complexity and space complexity of topological sorting is O(|V| + |E|).
'Data Science > Data Structure & Algorithm' 카테고리의 다른 글
| [Java] Stack with IntNode, two-stack reverse trick (0) | 2025.09.08 |
|---|---|
| [Java] Generic Types of List (0) | 2025.08.31 |
| [Python] Bellman-Ford's Shortest Path (0) | 2025.05.28 |
| [Python] Dijkstra's Shortest Path | 다익스트라 최단거리 (0) | 2025.05.27 |
| [Data Structure] Python: Graphs (0) | 2025.05.27 |