Size Bound-Adorned Datalog

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Fattebert, Christian, Jiang, Zhekai, Koch, Christoph, Pichler, Reinhard, Wang, Qichen
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911520000049152
author Fattebert, Christian
Jiang, Zhekai
Koch, Christoph
Pichler, Reinhard
Wang, Qichen
author_facet Fattebert, Christian
Jiang, Zhekai
Koch, Christoph
Pichler, Reinhard
Wang, Qichen
contents We introduce EDB-bounded datalog, a framework for deriving upper bounds on intermediate result sizes and the asymptotic complexity of recursive queries in datalog. We present an algorithm that, given an arbitrary datalog program, constructs an EDB-bounded datalog program in which every rule is adorned with a (non-recursive) conjunctive query that subsumes the result of the rule, thus acting as an upper bound. From such adornments, we define a notion of width based on (integral or fractional) edge-cover widths. Through the adornments and the width measure, we obtain, for every IDB predicate, worst-case upper bounds on their sizes, which are polynomial in the input data size, given a fixed program structure. Furthermore, with these size bounds, we also derive fixed-parameter tractable, output-sensitive asymptotic complexity bounds for evaluating the entire program. Additionally, by adapting our framework, we obtain a semi-decision procedure for datalog boundedness that efficiently rewrites most practical bounded programs into non-recursive equivalent programs.
format Preprint
id arxiv_https___arxiv_org_abs_2603_15425
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Size Bound-Adorned Datalog
Fattebert, Christian
Jiang, Zhekai
Koch, Christoph
Pichler, Reinhard
Wang, Qichen
Databases
We introduce EDB-bounded datalog, a framework for deriving upper bounds on intermediate result sizes and the asymptotic complexity of recursive queries in datalog. We present an algorithm that, given an arbitrary datalog program, constructs an EDB-bounded datalog program in which every rule is adorned with a (non-recursive) conjunctive query that subsumes the result of the rule, thus acting as an upper bound. From such adornments, we define a notion of width based on (integral or fractional) edge-cover widths. Through the adornments and the width measure, we obtain, for every IDB predicate, worst-case upper bounds on their sizes, which are polynomial in the input data size, given a fixed program structure. Furthermore, with these size bounds, we also derive fixed-parameter tractable, output-sensitive asymptotic complexity bounds for evaluating the entire program. Additionally, by adapting our framework, we obtain a semi-decision procedure for datalog boundedness that efficiently rewrites most practical bounded programs into non-recursive equivalent programs.
title Size Bound-Adorned Datalog
topic Databases
url https://arxiv.org/abs/2603.15425