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