Speedup of logic programs by binarization and partial deduction

被引:2
|
作者
Hruza, J [1 ]
Stepánek, P [1 ]
机构
[1] Charles Univ Prague, Dept Theoret Comp Sci & Math Log, Prague 11800 1, Czech Republic
关键词
logic programming; binarization; transforination; partial deduction; continuation;
D O I
10.1017/S147106840300190X
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Binary logic programs can be obtained from ordinary logic programs by a binarizing transformation. In most cases, binary programs obtained this way are less efficient than the original programs. (Demoen, 1992) showed an interesting example of a logic program whose computational behaviour was improved when it, was transformed to a binary program and then specialized by partial deduction. The class of B-stratifiable logic programs is defined. It is shown that for every B-stratifiable logic program, binarization and Subsequent partial deduction produce a binary program which does not contain variables for continuations introduced by binarization. Such programs usually have a better computational behaviour than the original ones. Both binarization and partial deduction can be easily automated. A comparison with other related approaches to program transformation is given.
引用
收藏
页码:355 / 369
页数:15
相关论文
共 50 条
  • [1] PARTIAL DEDUCTION OF UPDATABLE DEFINITE LOGIC PROGRAMS
    BENKERIMI, K
    SHEPHERDSON, JC
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1994, 18 (01): : 1 - 26
  • [2] An automatic partial deduction system for constraint logic programs
    Tao, Y
    Grosky, WI
    Liu, CN
    [J]. NINTH IEEE INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 1997, : 149 - 156
  • [3] Controlling generalization and polyvariance in partial deduction of normal logic programs
    Leuschel, M
    Martens, B
    De Schreye, D
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1998, 20 (01): : 208 - 258
  • [4] PARTIAL DEDUCTION OF LOGIC PROGRAMS WRT WELL-FOUNDED SEMANTICS
    ARAVINDAN, C
    DUNG, PM
    [J]. NEW GENERATION COMPUTING, 1994, 13 (01) : 45 - 74
  • [5] THE LOOP ABSORPTION AND THE GENERALIZATION STRATEGIES FOR THE DEVELOPMENT OF LOGIC PROGRAMS AND PARTIAL DEDUCTION
    PROIETTI, M
    PETTOROSSI, A
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1993, 16 (1-2): : 123 - 161
  • [6] PARTIAL DEDUCTION OF LOGIC PROGRAMS WRT WELL-FOUNDED SEMANTICS
    ARAVINDAN, C
    DUNG, PM
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1992, 632 : 384 - 402
  • [7] Partial deduction in disjunctive logic programming
    Sakama, C
    Seki, H
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1997, 32 (03): : 229 - 245
  • [8] PARTIAL DEDUCTION FOR STRUCTURED LOGIC PROGRAMMING
    BUGLIESI, M
    LAMMA, E
    MELLO, P
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1993, 16 (1-2): : 89 - 122
  • [9] Abstraction within partial deduction for linear logic
    Küngas, P
    [J]. ARTIFICIAL INTELLIGENCE AND SYMBOLIC COMPUTATION, PROCEEDINGS, 2004, 3249 : 52 - 65
  • [10] Partial deduction in the framework of structural synthesis of programs
    Matskin, M
    Komorowski, J
    Krogstie, J
    [J]. LOGIC PROGRAM SYNTHESIS AND TRANSFORMATION, 1997, 1207 : 239 - 255