Question
Consider the 2SAT version of the CNF-SAT problem, in which every clause in the given formula S has exactly two literals. Note that any
Consider the 2SAT version of the CNF-SAT problem, in which every clause in the given formula S has exactly two literals. Note that any clause of the form (a V b) can be thought of as two implications, ( b) and ( a). Consider a graph G from S, such that each vertex in G is associated with a variable, x, in S, or its negation, . Let there be a directed edge in G from a to b for each clause equivalent to (a b). Show that S is not satisfiable if and only if there is a variable x such that there is a path in G from x to x and a path from x to x. Derive from this rule a polynomial-time algorithm for solving this special case of the CNF-SAT problem. What is the running time of your algorithm?
Step by Step Solution
3.36 Rating (125 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started