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
- vscode
- Pre-processing
- Data Science
- string
- array
- 파이썬
- assignment operator
- 백준
- Object Oriented Programming
- pointer
- 알고리즘
- C++
- const
- programming
- 문자열
- 오블완
- 반복문
- pass by reference
- 함수
- Python
- 티스토리챌린지
- Class
- OOP
- function
- Deep Learning
- 배열
- baekjoon
- predictive analysis
- 포인터
- raw data
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 |