Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV
Abstract
Disjunctive Logic Programming (DLP) is a very expressive formalism: it allows to express every property of finite structures that is decidable in the complexity class ΣP2 (NPNP). Despite the high expressiveness of DLP, there are some simple properties, often arising in real-world applications, which cannot be encoded in a simple and natural manner. Among these, properties requiring to apply some arithmetic operators (like sum, times, count) on a set of elements satisfying some conditions, cannot be naturally expressed in DLP. To overcome this deficiency, in this paper we extend DLP by aggregate functions. We formally define the semantics of the new language, named DLPA. We show the usefulness of the new constructs on relevant knowledge-based problems. We analyze the computational complexity of DLPA, showing that the addition of aggregates does not bring a higher cost in that respect. We provide an implementation of the DLPA language in DLV- the state-of-the-art DLP system - and report on experiments which confirm the usefulness of the proposed extension also for the efficiency of the computation.
Cite
Text
Dell'Armi et al. "Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV." International Joint Conference on Artificial Intelligence, 2003.Markdown
[Dell'Armi et al. "Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV." International Joint Conference on Artificial Intelligence, 2003.](https://mlanthology.org/ijcai/2003/dellaposarmi2003ijcai-aggregate/)BibTeX
@inproceedings{dellaposarmi2003ijcai-aggregate,
title = {{Aggregate Functions in Disjunctive Logic Programming: Semantics, Complexity, and Implementation in DLV}},
author = {Dell'Armi, Tina and Faber, Wolfgang and Ielpa, Giuseppe and Leone, Nicola and Pfeifer, Gerald},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2003},
pages = {847-852},
url = {https://mlanthology.org/ijcai/2003/dellaposarmi2003ijcai-aggregate/}
}