0

A boolean expression is valid if it is true for every valuation. The problem $\text{BOOL-VAL}$ asks whether a given boolean expression is valid. As the question suggests I need to show that $\text{BOOL-VAL}$ is decidable in linear time. I have no idea how to go about proving this.

Is $\text{BOOL-VAL}$ the complement of $\text{BOOL-SAT}$?

Moreover, A boolean expression is Disjunctive Normal if it is the disjunction of conjunctive clauses, where a conjunctive clause is the conjunction of 1 or more literals. Such an expression is said to be a DNF (“disjunctive normal formula”). $\text{DNF-SAT}$ says given a DNF, is it satisfiable? The way I want to prove that it is decidable in linear time is like in $\text{CNF-SAT}$ we want atleast one literal per clause to be true and here we want atleast one clause to be true so that somehow intuitevely reduces the number of steps need to come to conclusion leading to lower time complexity but I'm not sure if I'm correct.

Source: This was asked as a brainteaser in my ToC class. There are two questions but I was told that they are basically the same so I asked both.

1 Answers1

1

No. What you are trying to show is not correct. As far as we know, there is no efficient algorithm to test whether an arbitrary boolean expression is valid.

If $\varphi$ is a boolean formula in CNF format, then $\neg \varphi$ is valid iff $\varphi$ is unsatisfiable. So if you had a linear-time algorithm to test for validity, you could apply it to $\neg \varphi$, and thereby learn in linear time whether $\varphi$ is satisfiable. That would constitute an algorithm proving that P=NP. That seems very unlikely, given our current state of knowledge.

Testing whether a CNF formula is valid can be done in linear time ($\varphi$ is valid iff every one of its clauses is valid, and a clause is valid iff <you fill in this part>), but testing whether a DNF formula is valid cannot be done in linear time (or even polynomial time) unless P=NP. Similarly, testing whether a DNF formula is satisfiable can be done in linear time, but testing whether a CNF formula is satisfiable cannot be done in linear time (or even polynomial time) unless P=NP.

D.W.
  • 167,959
  • 22
  • 232
  • 500