Published online by Cambridge University Press: 01 November 2008
Disjunctive logic programming (DLP) is a very expressive formalism. It allows forexpressing every property of finite structures that is decidable in thecomplexity class ΣP2(=NPNP). Despite this high expressiveness, thereare some simple properties, often arising in real-world applications, whichcannot be encoded in a simple and natural manner. Especially properties thatrequire the use of arithmetic operators (like sum, times, or count) on a set ormultiset of elements, which satisfy some conditions, cannot be naturallyexpressed in classic DLP. To overcome this deficiency, we extend DLP byaggregate functions in a conservative way. In particular, we avoid theintroduction of constructs with disputed semantics, by requiring aggregates tobe stratified. We formally define the semantics of the extended language (called ), and illustrate how it can be profitably used for representingknowledge. Furthermore, we analyze the computational complexity of , showing that the addition of aggregates does not bring a highercost in that respect. Finally, we provide an implementation of in DLV—a state-of-the-art DLP system—andreport on experiments which confirm the usefulness of the proposed extensionalso for the efficiency of computation.
To send this article to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about sending to your Kindle. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save this article to your Dropbox account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you used this feature, you will be asked to authorise Cambridge Core to connect with your Dropbox account. Find out more about saving content to Dropbox.
To save this article to your Google Drive account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you used this feature, you will be asked to authorise Cambridge Core to connect with your Google Drive account. Find out more about saving content to Google Drive.