Multi-dimensional Rankings, Program Termination, and Complexity Bounds of Flowchart Programs

被引:0
|
作者
Alias, Christophe [1 ]
Darte, Alain [1 ]
Feautrier, Paul [1 ]
Gonnord, Laure [2 ]
机构
[1] LIP, Compsys Team, Lyon, France
[2] Univ Lille, LIFL, CNRS USTL, UMR 8022, F-59650 Villeneuve Dascq, France
来源
STATIC ANALYSIS | 2010年 / 6337卷
关键词
LINEAR RANKING;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Proving the termination of a flowchart program can be done by exhibiting a ranking function, i.e., a function from the program states to a well-founded set, which strictly decreases at each program step. A standard method to automatically generate such a function is to compute invariants for each program point and to search for a ranking in a restricted class of functions that can be handled with linear programming techniques. Previous algorithms based on affine rankings either are applicable only to simple loops (i.e., single-node flowcharts) and rely on enumeration, or are not complete in the sense that they are not guaranteed to find a ranking in the class of functions they consider, if one exists. Our first contribution is to propose an efficient algorithm to compute ranking functions: It can handle flowcharts of arbitrary structure, the class of candidate rankings it explores is larger, and our method, although greedy, is provably complete. Our second contribution is to show how to use the ranking functions we generate to get upper bounds for the computational complexity (number of transitions) of the source program. This estimate is a polynomial, which means that we can handle programs with more than linear complexity. We applied the method on a collection of test cases from the literature. We also show the links and differences with previous techniques based on the insertion of counters.
引用
收藏
页码:117 / +
页数:3
相关论文
共 50 条
  • [1] Multi-dimensional linguistic complexity
    Gordon, G
    [J]. JOURNAL OF BIOMOLECULAR STRUCTURE & DYNAMICS, 2003, 20 (06): : 747 - 750
  • [2] New bounds for multi-dimensional packing
    Seiden, SS
    van Stee, R
    [J]. PROCEEDINGS OF THE THIRTEENTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2002, : 486 - 495
  • [3] Multi-Dimensional Interpretations for Termination of Term Rewriting
    Yamada, Akihisa
    [J]. AUTOMATED DEDUCTION, CADE 28, 2021, 12699 : 273 - 290
  • [4] Which city is the greenest? A multi-dimensional deconstruction of city rankings
    Taubenboeck, H.
    Reiter, M.
    Dosch, F.
    Leichtle, T.
    Weigand, M.
    Wurm, M.
    [J]. COMPUTERS ENVIRONMENT AND URBAN SYSTEMS, 2021, 89
  • [5] Multi-dimensional histograms with tight bounds for the error
    Baltrunas, Linas
    Mazeika, Arturas
    Bohlen, Michael
    [J]. 10TH INTERNATIONAL DATABASE ENGINEERING AND APPLICATIONS SYMPOSIUM, PROCEEDINGS, 2006, : 105 - 112
  • [6] On the complexity of multi-dimensional interval routing schemes
    Ruzicka, P
    Stefankovic, D
    [J]. THEORETICAL COMPUTER SCIENCE, 2000, 245 (02) : 255 - 280
  • [7] Economic complexity and shadow economy: A multi-dimensional analysis
    Ha, Le Thanh
    Dung, Hoang Phuong
    Thanh, To Trung
    [J]. ECONOMIC ANALYSIS AND POLICY, 2021, 72 : 408 - 422
  • [8] Burgess bounds for multi-dimensional short mixed character sums
    Pierce, L. B.
    [J]. JOURNAL OF NUMBER THEORY, 2016, 163 : 172 - 210
  • [9] The Fine-Grained Complexity of Multi-Dimensional Ordering Properties
    Haozhe An
    Mohit Gurumukhani
    Russell Impagliazzo
    Michael Jaber
    Marvin Künnemann
    Maria Paula Parga Nina
    [J]. Algorithmica, 2022, 84 : 3156 - 3191
  • [10] The Sample Complexity of Up-to-ε Multi-dimensional Revenue Maximization
    Gonczarowski, Yannai A.
    Weinberg, S. Matthew
    [J]. JOURNAL OF THE ACM, 2021, 68 (03)