62
правки
Изменения
XOR-SAT
,→Решение XOR-SAT задачи методом Гаусса
| ("⊕" means XOR, the <font color=red> red clause </font> is optional)
|-
| (''a''⊕''c''⊕''d'') ∧ (''b''⊕¬''c''⊕''d'') ∧ (''a''⊕''b''⊕¬''d'') ∧ (''a''⊕¬''b''⊕¬''c'') {{<font color|#ff8080|=red> ∧ (¬''a''⊕''b''⊕''c'')}}</font>
|}
|-
| colspan="9" | Each clause leads to one equation.
|-
| || ''a'' || ⊕ || || ''c'' || ⊕ || || ''d'' || = 1
|-
| || ''b'' || ⊕ || ¬ || ''c'' || ⊕ || || ''d'' || = 1
|-
| || ''a'' || ⊕ || || ''b'' || ⊕ || ¬ || ''d'' || = 1
|-
| || ''a'' || ⊕ || ¬ || ''b'' || ⊕ || ¬ || ''c'' || = 1
|-
| {{<font color|#ff8080|=red> ¬}} || {{</font> <font color|#ff8080|=red> ''a''}} || {{</font> <font color|#ff8080|=red> ⊕}} || || {{</font> <font color|#ff8080|=red> ''b''}} || {{</font> <font color|#ff8080|=red> ⊕}} || || {{</font> <font color|#ff8080|=red> ''c''}} || {{</font><font color|#ff8080| =red> ≃ 1}}|}</font>
|-
|
| ''a'' || ⊕ || ''b'' || ⊕ || ''c'' || = '''1'''
|-
| {{<font color|#ff8080|=red> ''a''}} </font> || {{<font color=red> ⊕ </font> |#ff8080|⊕}} || {{<font color|#ff8080|=red> ''b''}} </font> || {{<font color=red> ⊕ </font> |#ff8080|⊕}} || {{<font color|#ff8080|=red> ''c''}} </font> || {{<font color|#ff8080| =red> ≃ '''0'''}}</font>
|-
| colspan="6" | (If the {{<font color|#ff8080|=red> red equation}} </font> is present, {{<font color|#ff8080|=red> it}} </font> contradicts
|-
| colspan="6" | the last black one, so the system is unsolvable.
! Solution:
|-
| If the {{<font color|#ff8080|=red> red clause}} </font> is present: || Unsolvable
|-
| Else: || ''a'' = 0 = FALSE
| colspan="2" | '''As a consequence:'''
|-
| colspan="2" | ''R''(''a'',''c'',''d'') ∧ ''R''(''b'',¬''c'',''d'') ∧ ''R''(''a'',''b'',¬''d'') ∧ ''R''(''a'',¬''b'',¬''c'') {{<font color|#ff8080|=red> ∧ ''R''(¬''a'',''b'',''c'')}}</font>
|-
| colspan="2" | is not 1-in-3-satisfiable,