You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/graph/2sat.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
/**
2
2
* Author: Emil Lenngren, Simon Lindholm
3
3
* Date: 2011-11-29
4
-
* Source:
4
+
* License: CC0
5
+
* Source: folklore
5
6
* Description: Calculates a valid assignment to boolean variables a, b, c,... to a 2-SAT problem, so that an expression of the type $(a\|\|b)\&\&(!a\|\|c)\&\&(d\|\|!b)\&\&...$ becomes true, or reports that it is unsatisfiable.
6
7
* Negated variables are represented by bit-inversions (\texttt{\tilde{}x}).
0 commit comments