Current location - Training Enrollment Network - Mathematics courses - What's the difference between XOR and XOR?
What's the difference between XOR and XOR?
XOR and XOR or exclusive operation.

Xor is a mathematical operator. It is suitable for logical operation. The mathematical symbol of XOR is ⊕, and the computer symbol is XOR. Its algorithm is: a⊕b = (? a ∧ b) ∨ (a ∧? B), if the values of a and b are different, the XOR result is 1. If the values of a and b are the same, the XOR result is 0.

XOR is also called half addition, and its algorithm is equivalent to binary addition without carry: in binary, 1 stands for true and 0 stands for false, so the algorithm of XOR is: 0 ⊕ 0 = 0, 1 = 1, 0 ⊕ 1.

Lexical interpretation

XOR is a mathematical operator, which is applied to logical operations. Its algorithm is a same or b = ab+a' b' (a' is not a).

True identical or false result is false, false identical or true result is false, true identical or true result is true, false identical or false result is true. That is, if the two values are the same, the result of XOR is true. On the contrary, it is false. -referred to as the same truth, different false. That is, the same or: the same is one and the difference is zero.