On the Volume Calculation for Conditional DAG Tasks: Hardness and Algorithms

Jinghao Sun1, Yaoyao Chi1, Tianfei Xu1, Lei Cao1, Nan Guan2,a, Zhishan Guo3 and Wang Yi4

1Northeastern University, China
2The Hong Kong Polytechnic University, China
anan.guan@polyu.edu.hk
3University of Central Florida, USA
4Uppsala University, Sweden

ABSTRACT

The hardness of analyzing conditional directed acyclic graph (DAG) tasks remains unknown so far. For example, previous researches asserted that the conditional DAG’s volume can be solved in polynomial time. However, these researches all assume well-nested structures that are recursively composed by single-source-single-sink parallel and conditional components. For conditional DAGs in general that do not comply with this assumption, the hardness and algorithms of volume computation are still open. In this paper, we construct counterexamples to show that previous work cannot provide a safe upper bound of the conditional DAG’s volume in general. Moreover, we prove that the volume computation problem for conditional DAGs is strongly NP-hard. Finally, we propose an exact algorithm for computing the conditional DAG’s volume. Experiments show that our method can significantly improve the accuracy of the conditional DAG’s volume estimation.

Keywords: DAG, Conditional branches, Volume, NP-hard.



Full Text (PDF)