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 条
  • [1] Shellability is NP-complete
    Goaoc, Xavier
    Patak, Pavel
    Patakova, Zuzana
    Tancer, Martin
    Wagner, Uli
    JOURNAL OF THE ACM, 2019, 66 (03)
  • [2] BLOCKSUM is NP-Complete
    Haraguchi, Kazuya
    Ono, Hirotaka
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2013, E96D (03) : 481 - 488
  • [3] TETRAVEX is NP-complete
    Takenaga, Yasuhiko
    Walsh, Toby
    INFORMATION PROCESSING LETTERS, 2006, 99 (05) : 171 - 174
  • [4] Properties of NP-complete sets
    Glasser, Christian
    Pavan, A.
    Selman, Alan L.
    Sengupta, Samik
    SIAM JOURNAL ON COMPUTING, 2006, 36 (02) : 516 - 542
  • [5] System BV is NP-complete
    Kahramanogullari, Ozan
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2006, 143 : 87 - 99
  • [6] System BV is NP-complete
    Kahramanogullari, Ozan
    ANNALS OF PURE AND APPLIED LOGIC, 2008, 152 (1-3) : 107 - 121
  • [7] Autoreducibility of NP-Complete Sets
    Hitchcock, John M.
    Shafei, Hadi
    33RD SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2016), 2016, 47
  • [8] Elastic image matching is NP-complete
    Keysers, D
    Unger, W
    PATTERN RECOGNITION LETTERS, 2003, 24 (1-3) : 445 - 453
  • [9] Border Basis Detection is NP-complete
    Ananth, Prabhanjan V.
    Dukkipati, Ambedkar
    ISSAC 2011: PROCEEDINGS OF THE 36TH INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND ALGEBRAIC COMPUTATION, 2011, : 11 - 18
  • [10] Universal solutions for NP-complete problems
    Portier, N
    THEORETICAL COMPUTER SCIENCE, 1998, 201 (1-2) : 137 - 150