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