首页 > 其他分享 >BCP的基本实现演示

BCP的基本实现演示

时间:2022-09-04 17:44:07浏览次数:58  
标签:基本 10 演示 clause lit trail implied BCP conflict

先演示一个求解unsat样例的求解约束传播过程

 
$ ./MapleLCMDistChronoBT-DL-v2_scavel.exe 10.48.640112774.cnf outu1.out
0
c This is MapleLCMDistChronoBT.
c ============================[ Problem Statistics ]=============================
c |                                                                             |
c |  Number of variables:  {          10}                                       |
c |  Number of clauses:    {          48}                                       |
c |  Parse time:                   0.00 s                                       |
c Reduced to 10 vars, 43 cls (grow=0)
c No iterative elimination performed. (vars=10, c/v ratio=4.3)
c |  Simplification time:          0.00 s                                       |
c |                                                                             |
c ============================[ Search Statistics ]==============================
c | Conflicts |          ORIGINAL         |          LEARNT          | Progress |
c |           |    Vars  Clauses Literals |    Limit  Clauses Lit/Cl |          |
c ===============================================================================
decisions: 1;  decision var: -1
the size of trail is 3. : -1 -7 3
the size of trail_lim is 1 : 0
the implied lit is : -7
the implied clause is: [-7 1 ]
the implied lit is : 3
the implied clause is: [3 7 ]

decisions: 2;  decision var: -10
the size of trail is 10. : -1 -7 3 -10 -6 -4 9 -2 8 5
the size of trail_lim is 2 : 0 3
the implied lit is : -6
the implied clause is: [-6 10 -3 ]
the implied lit is : -4
the implied clause is: [-4 6 1 ]
the implied lit is : 9
the implied clause is: [9 6 -3 ]
the implied lit is : -2
the implied clause is: [-2 4 6 ]
the implied lit is : 8
the implied clause is: [8 -9 1 ]
the implied lit is : 5
the implied clause is: [5 -8 6 ]

the conflict index of trail is : 8
the conflict liter is : 8
the tow clauses get confliction each other-----
the conflict reason clause is: [8 -9 1 ]
the confl clause is: [-5 -8 2 ]

the learnt clause is : [ 6  1 ]

backtrack_level:1

decisions: 3;  decision var: -1
the size of trail is 7. : -1 -7 3 6 2 10 4
the size of trail_lim is 1 : 0
the implied lit is : -7
the implied clause is: [-7 1 ]
the implied lit is : 3
the implied clause is: [3 7 ]
the implied lit is : 6
the implied clause is: [6 1 ]
the implied lit is : 2
the implied clause is: [2 -6 -3 ]
the implied lit is : 10
the implied clause is: [10 -6 -3 ]
the implied lit is : 4
the implied clause is: [4 -6 -3 ]

the conflict index of trail is : 3
the conflict liter is : 6
the tow clauses get confliction each other-----
the conflict reason clause is: [6 1 ]
the confl clause is: [-4 -6 -2 ]

the learnt clause is : [ 1 ]

backtrack_level:0

decisions: 3;  decision var: 1
the size of trail is 1. : 1
the size of trail_lim is 0 :

decisions: 4;  decision var: -7
the size of trail is 9. : 1 -7 3 9 -4 8 -6 5 -2
the size of trail_lim is 1 : 1
the implied lit is : 3
the implied clause is: [3 7 ]
the implied lit is : 9
the implied clause is: [9 -3 -1 ]
the implied lit is : -4
the implied clause is: [-4 -9 -3 ]
the implied lit is : 8
the implied clause is: [8 4 -1 ]
the implied lit is : -6
the implied clause is: [-6 4 -3 ]
the implied lit is : 5
the implied clause is: [5 -8 6 ]
the implied lit is : -2
the implied clause is: [-2 6 4 ]

the conflict index of trail is : 7
the conflict liter is : 5
the tow clauses get confliction each other-----
the conflict reason clause is: [5 -8 6 ]
the confl clause is: [2 -5 -8 ]

the learnt clause is : [ -3 ]

backtrack_level:0

decisions: 4;  decision var: 1
the size of trail is 4. : 1 -3 7 -10
the size of trail_lim is 0 :
the implied lit is : 7
the implied clause is: [3 7 ]
the implied lit is : -10
the implied clause is: [-10 3 -1 ]

decisions: 5;  decision var: 9
the size of trail is 9. : 1 -3 7 -10 9 -2 5 8 -6
the size of trail_lim is 1 : 4
the implied lit is : -2
the implied clause is: [-2 -9 -7 ]
the implied lit is : 5
the implied clause is: [5 -9 -7 ]
the implied lit is : 8
the implied clause is: [8 2 3 ]
the implied lit is : -6
the implied clause is: [-6 -5 2 ]

the conflict index of trail is : 6
the conflict liter is : 5
the tow clauses get confliction each other-----
the conflict reason clause is: [5 -9 -7 ]
the confl clause is: [-8 -5 2 ]

the learnt clause is : [ -9 ]

backtrack_level:0

decisions: 5;  decision var: 1
the size of trail is 9. : 1 -3 7 -10 -9 2 5 8 6
the size of trail_lim is 0 :
the implied lit is : 7
the implied clause is: [3 7 ]
the implied lit is : -10
the implied clause is: [-10 3 -1 ]
the implied lit is : 2
the implied clause is: [2 9 -7 ]
the implied lit is : 5
the implied clause is: [5 9 -6 ]
the implied lit is : 8
the implied clause is: [8 9 3 ]
the implied lit is : 6
the implied clause is: [6 9 -1 ]

the conflict index of trail is : 4
the conflict liter is : -9
the tow clauses get confliction each other-----
the pre conflict clause in level 0! not put out!]
the confl clause is: [-6 9 3 ]

the conflict index of trail is : 4
the conflict liter is : -9
the tow clauses get confliction each other-----
the pre conflict clause in level 0! not put out!]
the confl clause is: [-6 9 3 ]

c ===============================================================================
c restarts              : {1}
c conflicts             : {5           }   (inf /sec)
c decisions             : {5           }   (0.00 % random) (inf /sec)
c propagations          : {25          }   (inf /sec)
c conflict literals     : {5           }   (16.67 % deleted)
c backtracks            : {4           }   (NCB 100% , CB 0%)
c Memory used           : 1.00 MB
c CPU time              : {0} s

s {UNSATISFIABLE}

  

   

相关总结说明

  先拍个手稿照片放到这里。有空时再将手稿图片内容整理成文字。
 

 

 

 

 

标签:基本,10,演示,clause,lit,trail,implied,BCP,conflict
From: https://www.cnblogs.com/yuweng1689/p/16655554.html

相关文章

  • stm32f103zet红牛开发板hal库版使用STMcubeMX:1-gpio 旺宝-红牛-流水灯演示实验
    系列开坑,红牛开发板的厂家例程都是使用标准库3.5开发的。旺宝的lpc教程写的很详细,但是stm的就没啥资料,貌似厂家也收摊不玩了。我参考野火跟硬石的教程。看他的电路图。试图......
  • vscode常用快捷键(动图演示)
    原文地址:https://blog.csdn.net/weixin_46655235/article/details/121788623vscode常用快捷键1、快速复制一行快捷键:shift+alt+下箭头/上箭头或者ctrl+c然后ctrl+v......
  • 16.普通参数与基本注解
    1注解:@PathVariable、 restful风格的参数@RequestHeader、  请求头中的参数@ModelAttribute、 运用在参数上,会将客户端传递过来的参数按名称注入到指定对......
  • 机器学习基本问答。
    机器学习基本问答。您如何定义机器学习?答。ML是关于构建可以从数据中学习的系统。学习意味着在某些任务上做得更好,给定一些绩效衡量标准。**什么是有标签的训练集......
  • 14个基本初等函数的导数
    14个基本初等函数的导数。 ......
  • c和c++基本数据类型
    必备知识常量在程序中不可以更改的量.一般以值的形式存在例子33.5’a‘变量在程序中可以改变的量注意必须先定义,才能使用定义变量:类型变量名例子inta......
  • 一篇文章教你学会ASP.Net Core LINQ基本操作
    一篇文章教你学会ASP.NetCoreLINQ基本操作为什么要使用LINQLINQ中提供了很多集合的扩展方法,配合lambda能简化数据处理。例如我们想要找出一个IEnumerable<int>中所有......
  • 创建用户和用户组、附加组等基本信息
        最后一个例子:删除用户 ......
  • Linux(基本操作
    Linux介绍、命令操作系统作用是现代计算机系统中最基本和最重要的系统软件是配置在计算机硬件上的第一层软件,是对硬件系统的首次扩展☆主要作用是管理好硬件......
  • 3.2 基本数据类型
    一引入我们学习变量是为了让计算机能够像人一样去记忆事物的某种状态,而变量的值就是用来存储事物状态的,很明显事物的状态分成不同种类的(比如人的年龄,身高,职位,工资等等),所......