algorithm/算法/算法突击/2023,3,4/7.图.md

17 lines
277 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 图
有向图,无向图。
# 临界表
二维数组表示图
# 拓扑图
有向无环图
1. 列出二维表
2. 找出每个点的入度
3. 取出入度为0的节点作为当前位置多个并列排序
4. 将取出节点到达节点的入度减1.
5. 循环34.