Convergence of Datalog over (Pre-) Semirings

05/30/2021
by   Mahmoud Abo Khamis, et al.
0

Recursive queries have been traditionally studied in the framework of datalog, a language that restricts recursion to monotone queries over sets, which is guaranteed to converge in polynomial time in the size of the input. But modern big data systems require recursive computations beyond the Boolean space. In this paper we study the convergence of datalog when it is interpreted over an arbitrary semiring. We consider an ordered semiring, define the semantics of a datalog program as a least fixpoint in this semiring, and study the number of steps required to reach that fixpoint, if ever. We identify algebraic properties of the semiring that correspond to certain convergence properties of datalog programs. Finally, we describe a class of ordered semirings on which one can use the semi-naive evaluation algorithm on any datalog program.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/24/2019

A Case for Stale Synchronous Distributed Model for Declarative Recursive Computation

A large class of traditional graph and data mining algorithms can be con...
research
02/16/2019

Combinatorial and Algorithmic Properties of One Matrix Structure at Monotone Boolean Functions

One matrix structure in the area of monotone Boolean functions is define...
research
02/23/2021

Conditional Dichotomy of Boolean Ordered Promise CSPs

Promise Constraint Satisfaction Problems (PCSPs) are a generalization of...
research
08/07/2021

A Logical Characterization of the Preferred Models of Logic Programs with Ordered Disjunction

Logic Programs with Ordered Disjunction (LPODs) extend classical logic p...
research
08/27/2018

A Monotone Preservation Result for Boolean Queries Expressed as a Containment of Conjunctive Queries

When a relational database is queried, the result is normally a relation...
research
02/21/2022

Optimizing Recursive Queries with Program Synthesis

Most work on query optimization has concentrated on loop-free queries. H...
research
01/29/2018

Earthmover Resilience and Testing in Ordered Structures

One of the main challenges in property testing is to characterize those ...

Please sign up or login with your details

Forgot password? Click here to reset