Forked from lirenlin/gist:013bc9fae7acfc48cc92cf40993cc772
Created
July 5, 2024 14:53
-
-
Save inscapist/143cddbe08c0c17418893ba147ab1b3f to your computer and use it in GitHub Desktop.
Revisions
-
lirenlin revised this gist
Apr 8, 2018 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,4 +17,9 @@ topological ordering/sorting is a concept for directed graph which has no direct Travesal method is for graph. This includes tree as it is a rectricted form of graph. RPO (Reverse Post Order) of a DAG has another name: topological sort. tree edge back edge forward edge cross edge https://eli.thegreenplace.net/2015/directed-graph-traversal-orderings-and-applications-to-data-flow-analysis/ -
lirenlin created this gist
Apr 5, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ A Tree is just a restricted form of a Graph. Trees have direction (parent / child relationships) and don't contain cycles. It has only one path between any two vertices They fit with in the category of Directed Acyclic Graphs (or a DAG). So Trees are DAGs with the restriction that a child can only have one parent. Directed Acyclic Graphs is a kind of directed graph that have no cycles. DFS will create a spanning tree of a graph. So does flooding. control-flow graph --> DFS --> spanning tree --> tree travesal (pre-order, post-order, in-order) CFG may contains loops, nodes with multiple incoming path. topological ordering/sorting is a concept for directed graph which has no directed cycles, that is, DAG. Travesal method is for graph. This includes tree as it is a rectricted form of graph. RPO (Reverse Post Order) of a DAG has another name: topological sort. https://eli.thegreenplace.net/2015/directed-graph-traversal-orderings-and-applications-to-data-flow-analysis/