DAG reversal is NP-complete

被引:12
|
作者
Naumann, Uwe [1 ]
机构
[1] Rhein Westfal TH Aachen, LuFG Informat Software & Tools Computat Engn 12, D-52056 Aachen, Germany
基金
英国工程与自然科学研究理事会;
关键词
Data-flow reversal; NP-completeness; Adjoint code;
D O I
10.1016/j.jda.2008.09.008
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
Runs of numerical computer programs can be visualized as directed acyclic graphs (DAGs). We consider the problem of restoring the intermediate values computed by such a program (the vertices in the DAG) in reverse order for a given upper bound on the available memory. The minimization of the associated computational cost in terms of the number of performed arithmetic operations is shown to be NP-complete. The reversal of the data-flow finds application, for example, in the efficient evaluation of adjoint numerical programs. We derive special cases of numerical programs that require the intermediate values exactly in reverse order, thus establishing the NP-completeness of the optimal adjoint computation problem. Last but not least we review some state-of-the-art approaches to efficient dataflow reversal taken by existing software tools for automatic differentiation. (C) 2008 Elsevier B.V. All rights reserved.
引用
收藏
页码:402 / 410
页数:9
相关论文
共 50 条
  • [31] Autoreducibility of NP-Complete Sets under Strong Hypotheses
    Hitchcock, John M.
    Shafei, Hadi
    COMPUTATIONAL COMPLEXITY, 2018, 27 (01) : 63 - 97
  • [32] Solving NP-Complete Akari games with deep learning
    Sbrana, Attilio
    Bizarro Mirisola, Luiz Gustavo
    Soma, Nei Yoshihiro
    Lima de Castro, Paulo Andre
    ENTERTAINMENT COMPUTING, 2023, 47
  • [33] Switching to Hedgehog-Free Graphs Is NP-Complete
    Jelinkova, Eva
    THEORY AND APPLICATIONS OF MODELS OF COMPUTATION, TAMC 2011, 2011, 6648 : 463 - 470
  • [34] k-LSAT is NP-Complete for k≥3
    Xu, Dao-Yun
    Deng, Tian-Yan
    Zhang, Qing-Shun
    Ruan Jian Xue Bao/Journal of Software, 2008, 19 (03): : 511 - 521
  • [35] FINDING A HOMOMORPHISM BETWEEN 2 WORDS IS NP-COMPLETE
    EHRENFREUCHT, A
    ROZENBERG, G
    INFORMATION PROCESSING LETTERS, 1979, 9 (02) : 86 - 88
  • [36] Automatic Evaluation of Reductions between NP-Complete Problems
    Creus, Carles
    Fernandez, Pau
    Godoy, Guillem
    THEORY AND APPLICATIONS OF SATISFIABILITY TESTING - SAT 2014, 2014, 8561 : 415 - 421
  • [37] Multiple Kernel Support Vector Machine Problem Is NP-Complete
    Carlos Padierna, Luis
    Martin Carpio, Juan
    del Rosario Baltazar, Maria
    Jose Puga, Hector
    Joaquin Fraire, Hector
    NATURE-INSPIRED COMPUTATION AND MACHINE LEARNING, PT II, 2014, 8857 : 152 - 159
  • [38] Local edge-connectivity augmentation in hypergraphs is NP-complete
    Kiraly, Zoltan
    Cosh, Ben
    Jackson, Bill
    DISCRETE APPLIED MATHEMATICS, 2010, 158 (06) : 723 - 727
  • [39] FINDING HAMILTONIAN CIRCUITS IN ARRANGEMENTS OF JORDAN CURVES IS NP-COMPLETE
    IWAMOTO, C
    TOUSSAINT, GT
    INFORMATION PROCESSING LETTERS, 1994, 52 (04) : 183 - 189
  • [40] Two-segmented channel routing is strong NP-complete
    Li, WN
    DISCRETE APPLIED MATHEMATICS, 1997, 78 (1-3) : 291 - 298