Is XOR a combination of AND and NOT operators?
I'm not sure whether this is the best place to ask this, but is the XOR binary operator a combination of AND+NOT operators?
Solution 1:
Yes. In fact, any logical operation can be built from the NAND operator, where
A NAND B = NOT(A AND B)
See for instance http://en.wikipedia.org/wiki/NAND_logic, which gives
A XOR B = (A NAND (A NAND B)) NAND (B NAND (A NAND B))
Digression: There is a story about certain military devices being designed using only NAND gates, so that only one part needs to be certified, stocked as spares, etc. I don't know whether it's actually true.