From datalog rules to efficient programs with time and space guarantees

Author:

Liu Yanhong A.1,Stoller Scott D.1

Affiliation:

1. State University of New York at Stony Brook, Stony Brook, NY

Abstract

This article describes a method for transforming any given set of Datalog rules into an efficient specialized implementation with guaranteed worst-case time and space complexities, and for computing the complexities from the rules. The running time is optimal in the sense that only useful combinations of facts that lead to all hypotheses of a rule being simultaneously true are considered, and each such combination is considered exactly once in constant time. The associated space usage may sometimes be reduced using scheduling optimizations to eliminate some summands in the space usage formula. The transformation is based on a general method for algorithm design that exploits fixed-point computation, incremental maintenance of invariants, and combinations of indexed and linked data structures. We apply the method to a number of analysis problems, some with improved algorithm complexities and all with greatly improved algorithm understanding and greatly simplified complexity analysis.

Funder

National Science Foundation

Division of Computing and Communication Foundations

Office of Naval Research

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference68 articles.

1. Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley Reading MA. Abiteboul S. Hull R. and Vianu V. 1995. Foundations of Databases. Addison-Wesley Reading MA.

2. Aho A. V. Hopcroft J. E. and Ullman J. D. 1983. Data Structures and Algorithms. Addison-Wesley Reading MA. Aho A. V. Hopcroft J. E. and Ullman J. D. 1983. Data Structures and Algorithms. Addison-Wesley Reading MA.

3. Introduction to set constraint-based program analysis

4. Andersen L. O. 1994. Program analysis and specialization for the C programming language. Ph.D. thesis DIKU University of Copenhagen. Andersen L. O. 1994. Program analysis and specialization for the C programming language. Ph.D. thesis DIKU University of Copenhagen.

Cited by 30 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Incremental Computation: What Is the Essence? (Invited Contribution);Proceedings of the 2024 ACM SIGPLAN International Workshop on Partial Evaluation and Program Manipulation;2024-01-11

2. Benchmarking for Integrating Logic Rules with Everything Else;Electronic Proceedings in Theoretical Computer Science;2023-09-12

3. Integrating Logic Rules with Everything Else, Seamlessly;Theory and Practice of Logic Programming;2023-07

4. Recursive rules with aggregation: a simple unified semantics;Journal of Logic and Computation;2022-11-14

5. Recursive Rules with Aggregation: A Simple Unified Semantics;Logical Foundations of Computer Science;2021-12-16

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3