首页 | 官方网站   微博 | 高级检索  
     


Weight constraint programs with evaluable functions
Authors:Yisong Wang  Jia-Huai You  Fangzhen Lin  Li Yan Yuan  Mingyi Zhang
Affiliation:1. Department of Computer Science, Guizhou University, Guiyang, China
2. Department of Computing Science, University of Alberta, Edmonton, AB, Canada
3. Department of Computer Science and Engineering, Hong Kong University of Science and Technology, Kowloon, Hong Kong
4. Guizhou Academy of Sciences, Guiyang, China
Abstract:In the current practice of Answer Set Programming (ASP), evaluable functions are represented as special kinds of relations. This often makes the resulting program unnecessarily large when instantiated over a large domain. The extra constraints needed to enforce the relation as a function also make the logic program less transparent. In this paper, we consider adding evaluable functions to answer set logic programs. The class of logic programs that we consider here is that of weight constraint programs, which are widely used in ASP. We propose an answer set semantics to these extended weight constraint programs and define loop completion to characterize the semantics. Computationally, we provide a translation from loop completions of these programs to instances of the Constraint Satisfaction Problem (CSP) and use the off-the-shelf CSP solvers to compute the answer sets of these programs. A main advantage of this approach is that global constraints implemented in such CSP solvers become available to ASP. The approach also provides a new encoding for CSP problems in the style of weight constraint programs. We have implemented a prototype system based on these results, and our experiments show that this prototype system competes well with the state-of-the-art ASP solvers. In addition, we illustrate the utilities of global constraints in the ASP context.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号