东北大学学报(自然科学版) ›› 2022, Vol. 43 ›› Issue (4): 463-469.DOI: 10.12068/j.issn.1005-3026.2022.04.002

• 信息与控制 • 上一篇    下一篇

混合exactly-one约束的模型计数研究

韩淑婷1,2, 赖永1,2, 刘杰1,2   

  1. (1. 吉林大学 计算机科学与技术学院, 吉林 长春130012; 2. 吉林大学符号计算与知识工程教育部重点实验室, 吉林 长春130012)
  • 修回日期:2021-06-17 接受日期:2021-06-17 发布日期:2022-05-18
  • 通讯作者: 韩淑婷
  • 作者简介:韩淑婷(1998-),女,河南博爱人,吉林大学硕士研究生; 赖永(1985-),男,江西萍乡人,吉林大学副教授.
  • 基金资助:
    国家自然科学基金资助项目(61976050); 吉林省自然科学基金资助项目(20190103005JH).

Research on Model Counting with Mixed Exactly-One Constraints

HAN Shu-ting1,2, LAI Yong1,2, LIU Jie1,2   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China; 2. Key Laboratory of Symbolic Computation and Knowledge Engineering, Ministry of Education, Changchun 130012, China.
  • Revised:2021-06-17 Accepted:2021-06-17 Published:2022-05-18
  • Contact: LIU Jie
  • About author:-
  • Supported by:
    -

摘要: 模型计数是求给定命题公式的模型数,是人工智能领域的一个基本问题.在贝叶斯网络、有界模型检测、精确集合覆盖等众多实际问题中,存在许多exactly-one约束.常见的处理方法是将exactly-one约束编码为CNF公式,再调用模型计数器求解.这种方法扩大了命题公式的规模,容易导致求解时间过长.本文分别提出从CNF公式中还原exactly-one约束的ECR算法和处理exactly-one约束的ECP算法.ECR算法能明显提高C2D编译器的求解效率.基于最新的模型计数器ExactMC,本文改进了能识别和单独处理exactly-one约束的模型计数器ECMC.实验结果表明,ECMC的时间效率相比ExactMC有显著提高.

关键词: exactly-one约束;模型计数;二元约束传播;合取范式;C2D

Abstract: Model counting is the number of models for a given proposition formula, which is a basic problem in the field of artificial intelligence. There are many exactly-one constraints in many practical problems such as Bayesian networks, bounded model detection, and accurate set coverage. A common processing method is to encode exactly-one constraints as CNF formulas, and then call the model counter to solve them. This method expands the scale of the proposition formula and easily leads to too long solution time. This paper respectively proposes the ECR algorithm that restores exactly-one constraints from the CNF formula and the ECP algorithm that handles exactly-one constraints. The ECR algorithm can significantly improve the solution efficiency of the C2D compiler. Based on the latest model counter ExactMC, this paper improves the model counter ECMC that can recognize and handle exactly-one constraints separately. The experimental results show that the time efficiency of ECMC is significantly improved compared to ExactMC.

Key words: exactly-one constraint; model counting; binary constraint propagation; conjunctive normal form; C2D

中图分类号: