Answer Set Programming (ASP) is a declarative logic formalism that allows to encode computational problems via logic programs. Despite the declarative nature of the formalism, some advanced expertise is required, in general, for designing an ASP encoding that can be efficiently evaluated by an actual ASP system. A common way for trying to reduce the burden of manually tweaking an ASP program consists in automatically rewriting the input encoding according to suitable techniques, for producing alternative, yet semantically equivalent, ASP programs. However, rewriting does not always grant benefits in terms of performance; hence, proper means are needed for predicting their effects with this respect. In this paper we describe an approach based on Machine Learning (ML) to automatically decide whether to rewrite. In particular, given an ASP program and a set of input facts, our approach chooses whether and how to rewrite input rules based on a set of features measuring their structural properties and domain information. To this end, a Multilayer Perceptrons model has then been trained to guide the ASP grounder I-DLV on rewriting input rules. We report and discuss the results of an experimental evaluation over a prototypical implementation.
A General Sufficient Condition for Rewriting Horn-ALCHI Atomic Queries into GQL
LIRMM(蒙彼利埃计算机科学、机器人学与微电子实验室);Inria(法国国家信息与自动化研究所);University of Montpellier(蒙彼利埃大学);CNRS(法国国家科学研究中心);DI ENS(巴黎高等师范学院信息学系);ENS(巴黎高等师范学院);PSL University(巴黎文理研究大学)
Extended ASP tableaux and rule redundancy in normal logic programs
Helsinki University of Technology (TKK)(赫尔辛基理工大学(TKK))
我们介绍了一个扩展的tableau演算的答案集编程(ASP)。证明系统基于[Gebser&Schaub,ICLP 2006]中定义的ASP表,并添加了扩展规则。我们从理论和经验两方面研究了扩展ASP表的功能。本文研究了扩展ASP表与Tseitin定义的子句集扩展归结证明系统的关系,并通过对一类正规逻辑程序P_n给出多项式长度证明,将扩展ASP表与ASP表分开,其中ASP表具有关于n的指数长度极小证明.此外,扩展ASP表格意味着有趣的洞察力的影响,程序简化的长度证明在ASP。密切相关的扩展ASP表格,我们实证研究的ASP解决效率的冗余规则的效果。逻辑程序设计理论与实践(Theory and Practice of Logic Programming,TPLP)