Here you can ask questions and find or give answers to organizational, academic and other questions about studying computer science.

1.1k questions

1.2k answers

1.6k comments

532 users

0 votes
How can I form a complete operator base from XOR and AND?

a and b = a and b

a or b = (a xor b) xor (a and b)

but I can't find a solution for NOT

Thanks for your help
in # Mandatory Modules Bachelor by (130 points)

1 Answer

+3 votes

¬a = a ⊕ 1  

Using other notation,  not a = a xor 1

by (2.5k points)
And the 1 is needed as a constant since you cannot express not with {and, xor} alone. That is why the Reed-Muller form has the additional xor with 1 to express negation.

Related questions

0 votes
1 answer
+3 votes
1 answer
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer
asked Jun 2, 2020 in * Other Teaching Fields by wei (190 points)
Imprint | Privacy Policy
...