当前位置:网站首页>Discrete mathematics: Main Normal Form (main disjunctive normal form, main conjunctive normal form)
Discrete mathematics: Main Normal Form (main disjunctive normal form, main conjunctive normal form)
2022-07-05 00:58:00 【Xiaobai Xiaozheng】
Solve the main disjunctive normal form 、 Principal conjunctive normal form method
1、 Truth table method
① List all possible values of arguments in the table
② Look up the table to judge the proposition
Propositional result really , The argument value corresponds to Principal disjunctive normal form
Propositional result false , The argument value corresponds to The main conjunctive paradigm
2、 Equivalent algorithm
① Propositional simplification
Implication equivalence :A→B ¬A∨B( effect : Go to →)
Law of contradiction :A ∧¬A( effect : Complement argument )
Distributive law :(A∧B)∨C (A∨C)∧(B∨C)、(A∨B)∧C (A∧C)∨(B∧C)
② Judgement proposition
Propositional result really , The argument value corresponds to Principal disjunctive normal form
Propositional result false , The argument value corresponds to The main conjunctive paradigm
Example
Find the formula (p→q)∧(q→r) Principal disjunctive normal form and principal conjunctive normal form of 、 True assignment .
Explain :
1、 Truth table method
p | q | r | p→q | q→r | (p→q)∧(q→r) |
---|---|---|---|---|---|
0 | 0 | 0 | 1 | 1 | 1 |
0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 0 | 1 | 0 | 0 |
0 | 1 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 1 | 0 |
1 | 1 | 0 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | 1 | 1 |
Look up the table
True assignment :000、001、011、111
Principal disjunctive normal form :∑(0,1,3,7)
False assignment :010、100、101、110
The main conjunctive paradigm :∏(2,4,5,6)
2、 Equivalent algorithm
(p→q)∧(q→r)
= (¬p∨q)∧(¬q∨r) -----------------------------( Implication equivalence : Simplification →)
= ((¬p∨q)∨(¬r∧r)))∧((¬q∨r)∨(¬p∧p))----( Law of contradiction : Complement argument )
= (¬p∨q∨¬r)∧(¬p∨q∨r)∧(¬p∨¬q∨r)∧(p∨¬q∨r)—( Distributive law : Simplification )
M5M4M6M2
According to the calculation results The main conjunctive paradigm :∏(2,4,5,6)
False assignment :010、100、101、110
be Principal disjunctive normal form :∑(0,1,3,7)
True assignment :000、001、011、111
边栏推荐
- 测试部新来了个00后卷王,上了年纪的我真的干不过了,已经...
- BGP comprehensive experiment
- lambda expressions
- 资深测试/开发程序员写下无bug?资历(枷锁)不要惧怕错误......
- Apifox (postman + swagger + mock + JMeter), an artifact of full stack development and efficiency improvement
- 多模输入事件分发机制详解
- Sorting selection sorting
- Check if this is null - checking if this is null
- Database performance optimization tool
- “薪资倒挂”、“毕业生平替” 这些现象说明测试行业已经...
猜你喜欢
Playwright之录制
7. Scala process control
Safety learning week4
SAP UI5 应用开发教程之一百零七 - SAP UI5 OverflowToolbar 容器控件介绍的试读版
Senior Test / development programmers write no bugs? Qualifications (shackles) don't be afraid of mistakes
[selenium automation] common notes
Expose testing outsourcing companies. You may have heard such a voice about outsourcing
Reasons and solutions of redis cache penetration and avalanche
各大主流编程语言性能PK,结果出乎意料
Innovation leads the direction. Huawei Smart Life launches new products in the whole scene
随机推荐
Call Huawei order service to verify the purchase token interface and return connection reset
Open3d uses GICP to register point clouds
Which financial products with stable income are good
The most complete regular practical guide of the whole network. You're welcome to take it away
Inventory of more than 17 typical security incidents in January 2022
Multilingual Wikipedia website source code development part II
2022.07.03(LC_6111_统计放置房子的方式数)
Get to know ROS for the first time
【FPGA教程案例10】基于Verilog的复数乘法器设计与实现
Summary of the function and usage of const, volatile and restrict
潘多拉 IOT 开发板学习(RT-Thread)—— 实验4 蜂鸣器+马达实验【按键外部中断】(学习笔记)
LeetCode周赛 + AcWing周赛(T4/T3)分析对比
4. Scala writes HelloWorld in idea, in-depth analysis of accompanying objects, and association of source packages
【Unity】InputSystem
各大主流编程语言性能PK,结果出乎意料
【纯音听力测试】基于MATLAB的纯音听力测试系统
2022.07.03 (LC 6109 number of people who know secrets)
Reasons and solutions of redis cache penetration and avalanche
Research Report on the overall scale, major producers, major regions, products and application segmentation of agricultural automatic steering system in the global market in 2022
SAP ui5 application development tutorial 106 - how to improve the readability of SAP ui5 application routing URL trial version