Efficient way to recursively calculate dominator tree?

前端 未结 4 934
渐次进展
渐次进展 2021-02-05 11:22

I\'m using the Lengauer and Tarjan algorithm with path compression to calculate the dominator tree for a graph where there are millions of nodes. The algorithm is quite complex

4条回答
  •  星月不相逢
    2021-02-05 12:08

    Could you elaborate on what sort of graph you're starting with? I don't see how there is any difference between a graph which is a tree, and the dominator tree of that graph. Every node's parent should be its idom, and it would of course be dominated by everything above it in the tree.

提交回复
热议问题