The complexity of revising logic programs

Russell Greiner
{"title":"The complexity of revising logic programs","authors":"Russell Greiner","doi":"10.1016/S0743-1066(99)00021-7","DOIUrl":null,"url":null,"abstract":"<div><p>A rule-based program will return a set of answers to each query. An <em>impure</em> program, which includes the Prolog <span>cut</span> “!” and “<span>not(</span>·<span>)</span>” operators, can return different answers if its rules are re-ordered. There are also many reasoning systems that return only the <em>first</em> answer found for each query; these first answers, too, depend on the rule order, even in pure rule-based systems. A theory revision algorithm, seeking a revised rule-base whose <em>expected accuracy</em>, over the distribution of queries, is optimal, should therefore consider modifying the order of the rules. This paper first shows that a polynomial number of training “labeled queries” (each a query paired with its correct answer) provides the distribution information necessary to identify the optimal ordering. It then proves, however, that the task of determining which ordering is optimal, once given this distributional information, is intractable even in trivial situations; e.g., even if each query is an atomic literal, we are seeking only a “perfect” theory, and the rule base is propositional. We also prove that this task is not even approximable: Unless P=NP, no polynomial time algorithm can produce an ordering of an <em>n</em>-rule theory whose accuracy is within <em>n</em><sup><em>γ</em></sup> of optimal, for some <em>γ</em>&gt;0. We next prove similar hardness and non-approximatability, results for the related tasks of determining, in these impure contexts, (1) the optimal <em>ordering of the antecedents</em>; (2) the optimal set of <em>new rules to add</em> and (3) the optimal set of <em>existing rules to delete</em>.</p></div>","PeriodicalId":101236,"journal":{"name":"The Journal of Logic Programming","volume":"40 2","pages":"Pages 273-298"},"PeriodicalIF":0.0000,"publicationDate":"1999-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/S0743-1066(99)00021-7","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"The Journal of Logic Programming","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0743106699000217","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

A rule-based program will return a set of answers to each query. An impure program, which includes the Prolog cut “!” and “not(·)” operators, can return different answers if its rules are re-ordered. There are also many reasoning systems that return only the first answer found for each query; these first answers, too, depend on the rule order, even in pure rule-based systems. A theory revision algorithm, seeking a revised rule-base whose expected accuracy, over the distribution of queries, is optimal, should therefore consider modifying the order of the rules. This paper first shows that a polynomial number of training “labeled queries” (each a query paired with its correct answer) provides the distribution information necessary to identify the optimal ordering. It then proves, however, that the task of determining which ordering is optimal, once given this distributional information, is intractable even in trivial situations; e.g., even if each query is an atomic literal, we are seeking only a “perfect” theory, and the rule base is propositional. We also prove that this task is not even approximable: Unless P=NP, no polynomial time algorithm can produce an ordering of an n-rule theory whose accuracy is within nγ of optimal, for some γ>0. We next prove similar hardness and non-approximatability, results for the related tasks of determining, in these impure contexts, (1) the optimal ordering of the antecedents; (2) the optimal set of new rules to add and (3) the optimal set of existing rules to delete.

修改逻辑程序的复杂性
基于规则的程序将为每个查询返回一组答案。一个不纯的程序,其中包括Prolog cut“!和“not(·)”操作符,如果对其规则进行重新排序,则可以返回不同的答案。还有许多推理系统只返回每个查询找到的第一个答案;这些第一个答案也取决于规则顺序,即使在纯基于规则的系统中也是如此。一个理论修正算法,寻求一个修正后的规则库,该规则库在查询分布上的预期精度是最优的,因此应该考虑修改规则的顺序。本文首先展示了多项式数量的训练“标记查询”(每个查询与其正确答案配对)提供了识别最优排序所需的分布信息。然而,它证明,一旦给定了这些分布信息,确定哪种排序是最优的任务,即使在琐碎的情况下也是难以处理的;例如,即使每个查询都是一个原子文字,我们也只寻求一个“完美”的理论,并且规则库是命题的。我们还证明了这个任务甚至是不可逼近的:除非P=NP,否则没有多项式时间算法可以产生n规则理论的排序,其精度在nγ的最优范围内,对于某些γ>0。接下来,我们证明了在这些不纯粹的环境中确定相关任务的类似的硬度和非近似性的结果,(1)前词的最优排序;(2)要添加的最优新规则集和(3)要删除的最优现有规则集。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信