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a a a a a 0 0 0 0 0 0 1 2 3 4
The expected clause vector solution set (DNF) is identical to the input clause vector set (CNF), since the number of variables is odd.
3-SAT Problem
( ¬a00 ∨ ¬a01 ∨ ¬o00 ) ∧ ( ¬a02 ∨ o00 ∨ ¬o01 ) ∧ ( ¬a03 ∨ ¬a04 ∨ o01 ) ∧ ( ¬a00 ∨ ¬a01 ∨ ¬o02 ) ∧ ( ¬a02 ∨ o02 ∨ ¬o03 ) ∧ ( a03 ∨ a04 ∨ o03 ) ∧ ( ¬a00 ∨ ¬a01 ∨ ¬o04 ) ∧ ( a02 ∨ o04 ∨ ¬o05 ) ∧ ( ¬a03 ∨ a04 ∨ o05 ) ∧ ( ¬a00 ∨ ¬a01 ∨ ¬o06 ) ∧ ( a02 ∨ o06 ∨ ¬o07 ) ∧ ( a03 ∨ ¬a04 ∨ o07 ) ∧ ( ¬a00 ∨ a01 ∨ ¬o08 ) ∧ ( ¬a02 ∨ o08 ∨ ¬o09 ) ∧ ( ¬a03 ∨ a04 ∨ o09 ) ∧ ( ¬a00 ∨ a01 ∨ ¬o10 ) ∧ ( ¬a02 ∨ o10 ∨ ¬o11 ) ∧ ( a03 ∨ ¬a04 ∨ o11 ) ∧ ( ¬a00 ∨ a01 ∨ ¬o12 ) ∧ ( a02 ∨ o12 ∨ ¬o13 ) ∧ ( ¬a03 ∨ ¬a04 ∨ o13 ) ∧ ( ¬a00 ∨ a01 ∨ ¬o14 ) ∧ ( a02 ∨ o14 ∨ ¬o15 ) ∧ ( a03 ∨ a04 ∨ o15 ) ∧ ( a00 ∨ ¬a01 ∨ ¬o16 ) ∧ ( ¬a02 ∨ o16 ∨ ¬o17 ) ∧ ( ¬a03 ∨ a04 ∨ o17 ) ∧ ( a00 ∨ ¬a01 ∨ ¬o18 ) ∧ ( ¬a02 ∨ o18 ∨ ¬o19 ) ∧ ( a03 ∨ ¬a04 ∨ o19 ) ∧ ( a00 ∨ ¬a01 ∨ ¬o20 ) ∧ ( a02 ∨ o20 ∨ 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_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 0 _ ] [ _ _ 1 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1 0 ] [ _ _ _ 1 0 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1 ] a a a a a o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 0 1 2 3 4 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Complexities:
n-complexity: O(237)m-complexity: O(⌈3 ⁄ 2⌉48) = O(248)
Colored matrix:
The colored matrix of the sorted problem gives a better overview:
This reduces m-complexity to:
O(⌈3/2⌉^20) = O(2^20)
Sorted problem colored matrix:
Merging 4-SAT clauses, reduces m-complexity to:
O(⌈4/2⌉^10) = O(2^10)
Since splitting any of S[0] .. S[7] in the optimal manner will also reduce the other clauses of that group, the real complexity reduces to:
O(⌈4/2⌉^3) = O(2^3)
Merging 3 variables will also produce a clause with selections that reduce the core problem to 2-SAT. Therefore n-complexity is also:
O(2^3)
Colored matrix:
Invalid Selections (Variables)
Invalid Selections (Variables)
Variable Identities
Invalid Selections (Variables)
XORSAT, new n-complexity O(22)
Instead of core problem identities, variable identities can be used to achieve a complexity reduction. .. |:todo:|
Variable Identities
Variable Identities
MiniSat_v1.14_linux ex-xor5-3sat-000.cnf ==================================[MINISAT]=================================== | Conflicts | ORIGINAL | LEARNT | Progress | | | Clauses Literals | Limit Clauses Literals Lit/Cl | | ============================================================================== | 0 | 48 144 | 16 0 0 nan | 0.000 % | ============================================================================== restarts : 1 conflicts : 9 (inf /sec) decisions : 52 (inf /sec) propagations : 73 (inf /sec) conflict literals : 27 (0.00 % deleted) Memory used : 1.67 MB CPU time : 0 s SATISFIABLE
MiniSat_v1.14_linux ex-xor5-3sat-snf.r-000.mtx.cnf ==================================[MINISAT]=================================== | Conflicts | ORIGINAL | LEARNT | Progress | | | Clauses Literals | Limit Clauses Literals Lit/Cl | | ============================================================================== | 0 | 400 848 | 133 0 0 nan | 0.000 % | ============================================================================== restarts : 1 conflicts : 0 (nan /sec) decisions : 44 (inf /sec) propagations : 144 (inf /sec) conflict literals : 0 ( nan % deleted) Memory used : 1.67 MB CPU time : 0 s SATISFIABLE
Copyright
Copyright (C) 2013, Wolfgang Scherer, <Wolfgang.Scherer@gmx.de>. See the document source for conditions of use under the GNU Free Documentation License.