JOURNAL ARTICLE

Precise complexity analysis for efficient datalog queries

Abstract

Given a set of Datalog rules, facts, and a query, answers to the query can be inferred bottom-up starting with the facts or top-down starting with the query. For efficiently answering the query, top-down evaluation is extended with tabling that stores the results of the subqueries encountered, and bottom-up evaluation is done on rules transformed based on demand from the query.

Keywords:
Datalog Computer science Query language Query optimization Sargable Set (abstract data type) Deductive database Conjunctive query Top-down and bottom-up design Web query classification Web search query RDF query language Spatial query Query expansion Information retrieval Boolean conjunctive query Programming language Theoretical computer science Database Relational database Search engine

Metrics

17
Cited By
1.48
FWCI (Field Weighted Citation Impact)
34
Refs
0.81
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications
Data Management and Algorithms
Physical Sciences →  Computer Science →  Signal Processing
Semantic Web and Ontologies
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

JOURNAL ARTICLE

More efficient datalog queries

K. Tuncay TekleYanhong A. Liu

Year: 2011 Pages: 661-672
JOURNAL ARTICLE

Precise complexity guarantees for pointer analysis via Datalog with extensions

K. Tuncay TekleYanhong A. Liu

Journal:   Theory and Practice of Logic Programming Year: 2016 Vol: 16 (5-6)Pages: 916-932
JOURNAL ARTICLE

The Complexity of Why-Provenance for Datalog Queries

Marco CalauttiEster LivshitsAndréas PierisMarkus Schneider

Journal:   Proceedings of the ACM on Management of Data Year: 2024 Vol: 2 (2)Pages: 1-16
BOOK-CHAPTER

On the Complexity of Single-Rule Datalog Queries

Georg GottlobChristos H. Papadimitriou

Lecture notes in computer science Year: 1999 Pages: 201-222
JOURNAL ARTICLE

On the complexity of single-rule datalog queries

Georg GottlobChristos H. Papadimitriou

Journal:   Information and Computation Year: 2003 Vol: 183 (1)Pages: 104-122
© 2026 ScienceGate Book Chapters — All rights reserved.