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