Unit 2-Lecture6: Directed Acyclic Graphs & Scheduling
来源:互联网 发布:唐七公子知乎 编辑:程序博客网 时间:2024/06/16 21:22
1 DAG
Definition: A directed acyclic graph (DAG) is a directed graph with no cycles.
2 Scheduling
2.1 Topological Sort
- A topological sort of a finite DAG is a list of all the vertices such that each vertex v appears earlier in the list than every other vertex reachable from v.
- For task dependencies, topological sorting provides a way to execute tasks one after another while respecting those dependencies.
2.2 minimal and minimum
An vertex v of a DAG, D, is minimum iff every other vertex is reachable from v. A vertex v is minimal iff v is not reachable from any other vertex.
- These words come from the perspective that a vertex is “smaller” than any other vertex it connects to.
- Every finite DAG has a topological sort.
2.3 Parallel Task Scheduling
- Chain:
Two vertices in a DAG are comparable when one of them is reachable from the other. A chain in a DAG is a set of vertices such that any two of them are comparable. A vertex in a chain that is reachable from all other vertices in the chain is called a maximum element of the chain. A finite chain is said to end at its maximum element. - A largest chain is also known as a critical path.
- Antichain:
An antichain in a DAG is a set of vertices such that no two elements in the set are comparable—no walk exists between any two different vertices in the set. - Schedule:
A parallel schedule for a DAG, D, is a partition of V(D) into blocks A0, A1… such that when j < k, no vertex in Aj is reachable from any vertex in Ak. The block Ak is called the set of elements scheduled at step k, and the time of the schedule *is the number of blocks*. The **maximum number of elements **scheduled at any step is called the **number of processors **required by the schedule. - and the number of elements less than a in the chain is called the depth of a.
2.4 Dilworth’s Lemma
For all t > 0, every DAG with n vertices must have either a chain of size greater than t or an antichain of size at least n/t.
Reference
[1] Lehman E, Leighton F H, Meyer A R. Mathematics for Computer Science[J]. 2015.{}
0 0
- Unit 2-Lecture6: Directed Acyclic Graphs & Scheduling
- dawg (directed acyclic word graphic)
- Princeton Algorithms: Part 2 [week 1: Directed Graphs]
- 字符串后缀自动机:Directed Acyclic Word Graph
- Single-source shortest paths in directed graphs
- Lecture6-2Bounding Function
- DAG (directed acyclic graph) 作为大数据执行引擎的优点
- Assign directions to edges so that the directed graph remains acyclic
- CS231N-Lecture6 Training Neural Network part-2
- Graphs
- CS231n系列课程Lecture6: Training Neural Networks, Part 2
- unit 2
- Unit 2
- unit 2
- pintos (2) --Priority Scheduling
- 【CareerCup】Trees and Graphs—Q4.2
- 【Codeforces Round #369 (Div. 2)】Codeforces 711D Directed Roads
- Codeforces Round #369 (Div. 2) [D] Directed Roads
- 内部类学习笔记
- java重写与重载
- [百练1088]滑雪(动态规划)
- Linux cmd常用命令& 实例
- sdnu 1069
- Unit 2-Lecture6: Directed Acyclic Graphs & Scheduling
- NYOJ64 - 鸡兔同笼
- 生成对抗网络 - Adversarial Examples 对抗样本
- 1025. PAT Ranking (25)
- web.config.xml设置和读取数据库
- NYOJ74 - 小学生算术
- sdnu 1079
- Python3抓取网页图片
- spring中注解和xml混合使用