Convert the following sentences to Conjunctive Normal Form (CNF).
3.1. ¬((¬P ↔ R) → ((Q ∧ R) ∨ P))
3.2. ¬((P ∨ Q) → ((P ∨ Q ∨ ¬R) ∧ (R ∨ P ∨ Q)))
CNF: (conjective normal forms)
these are nothing but product of sums so the output is in the form of product of sums
we can convert an expression to cnf using 2 methods
1. using boolean algebra laws
2. using truth tables
for our problems I am using truth table method to convert the given expressions into CNF form.
3.1)
¬((¬P ↔ R) → ((Q ∧ R) ∨ P))
P |
Q |
R |
¬P |
¬P ↔ R |
Q ∧ R |
Q ∧ R) ∨ P) |
(¬P ↔ R) → ((Q ∧ R) ∨ P) |
¬((¬P ↔ R) → ((Q ∧ R) ∨ P)) |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
0 |
1 |
0 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
3.2)
¬((P ∨ Q) → ((P ∨ Q ∨ ¬R) ∧ (R ∨ P ∨ Q)))
P |
Q |
R |
¬R |
A1 |
A2 |
A3 |
R1 |
R2 |
¬R2 |
P ∨ Q |
P ∨ Q ∨ ¬R |
R ∨ P ∨ Q |
A2 ∧ A3 |
A1 → R1 |
|||||
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
0 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
0 |
Convert the following sentences to Conjunctive Normal Form (CNF). 3.1. ¬((¬P ↔ R) → ((Q ∧...
Convert following sentences into Conjunctive Normal Form (CNF) D-> (A <-> (B v C) )
2. Convert the following grammar to Chomsky Normal Form (CNF). R is the start symbol and the lower case letters are terminals. The upper case letters are variables/non-terminals. R->XRXS S->a TbbTa T->XTXI X. € X->ab
Convert the following grammar into Chomsky Normal Form (CNF): S → aS | A | bS A → aA | bBa | aAa B → bb | bBb Note: you need to first simplify the grammar ( remove any λ - productions, unit productions, and useless productions), and then convert the simplified grammar to CNF. Convert the following grammar into Chomsky Normal Form (CNF): SaSAS A → AbBa| aAa B+bb | bBb Note: you need to first simplify the grammar...
Convert the following to conjunctive normal form. Show your work and state what steps are used (i.e. De Morgan's, implication removal, etc). 1. ((S+Q)+((-SAQ)VW)) 2. ((-QVS)V(-Q+(SAW)))
Obtain the combinational circuit diagram of the following 1. ((p ∨ q) ↔ r) ↔ p 2. (¬q ∧ ¬r) ↔ (p → (q ∨ r))
Convert the propositional statements into Conjunctive Normal Form in JAVA. Use the algorithm given in this PDF: http://swtv.kaist.ac.kr/courses/cs402-07/prop_logic4.pdf The implementation must have the following classes Solver.java: Contains the main solving method to solve a formula in conjunctive normal form. A formula is a LinkedList. Clause.java : A clause represents disjunctions of literals. A clause is represented as a Hashmap which allows fast access to a literal with a given name. Literal.java: A literal represents an atom that is either negated...
When is the grammar said to be in Chomsky Normal Form (CNF). Convert the given grammar to CNF by showing step by step. { S->VP VP->Verb VP-> Verb VP NP->N NP PP Verb->climb|lift|read N-> Tom | apple}
Find the number of subsets of each possible size for a set containing four elements Use the definition of the determinant to show that det(A) umciy thummy ice-cream). 2. (20 pts 6 pts +6 pts + 7 pts) Convert the following sentences to Conjunctive Normal Form (CNF): (c) (PA Q)P Q)
6. Obtain disjunctive normal form, conjunctive normal form, for the following expression
(a) use the logical equivalences p → q ≡∼p ∨ q and p ↔ q ≡ (∼p ∨ q) ∧ (∼q ∨ p) to rewrite the given statement forms without using the symbol → or ↔, and (b) use the logi- cal equivalence p ∨ q ≡∼(∼p∧ ∼q) to rewrite each statement form using only ∧ and ∼. * p∨∼q→r∨q