Skip to content

Commit

Permalink
Update 2SAT.md
Browse files Browse the repository at this point in the history
Just a typo
  • Loading branch information
sumitrawat10 authored Sep 23, 2023
1 parent 9e76b3b commit 44c507e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph/2SAT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Find an assignment of $a, b, c$ such that the following formula is true:

$$(a \lor \lnot b) \land (\lnot a \lor b) \land (\lnot a \lor \lnot b) \land (a \lor \lnot c)$$

SAT is NP-complete, there is no known efficient solution known for it.
SAT is NP-complete, there is no known efficient solution for it.
However 2SAT can be solved efficiently in $O(n + m)$ where $n$ is the number of variables and $m$ is the number of clauses.

## Algorithm:
Expand Down

0 comments on commit 44c507e

Please sign in to comment.