Is there any method that can be used to convert any formula do a DNF/CNF form using only the truth table? For example if I have the following formula
p → ¬(q∨r)
How can I convert it into DNF?
p q r (q∨r) ¬(q∨r) p → ¬(q∨r)
0 0 0 0 1 1
0 0 1 1 0 1
0 1 0 1 0 1
0 1 1 1 0 1
1 0 0 0 1 1
1 0 1 1 0 0
1 1 0 1 0 0
1 1 1 1 0 0
I am assuming you mean truth table in the title. Consider a conjunction of literals such as $p \land \lnot q \land \lnot r$: this is true for the assignment given by the row with $(p, q, r) = (1, 0, 0)$ in the truth table and not for any other row. The DNF is the disjunction of the conjunctions corresponding to the rows in which your formula is true. $$ \begin{align*} & \lnot p \land \lnot q \land \lnot r\\ {}\lor {} &\lnot p \land \lnot q \land r \\ {}\lor {} &\lnot p \land q \land \lnot r \\ {}\lor {} &\lnot p \land q \land r \\ {}\lor {} &p \land \lnot q \land \lnot r \\ \end{align*} $$