计算机科学 > 程序设计语言
[提交于 2003年12月15日]
标题:Speedup of Logic Programs by Binarization and Partial Deduction
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Jan Hruza[v1] 2003年12月15日 星期一 12:23:42 UTC