“互斥或”在英语中常见的表达是 “exclusive OR” ,也可简写为 “XOR” 。
在计算机科学、逻辑学和数学等领域,它用于描述一种逻辑运算,即当两个输入中仅有一个为真(或1)时,输出才为真(或1);若两个输入同为真或同为假,输出则为假(或0) 。例如:
In digital electronics, the XOR gate is a fundamental building block that implements the exclusive OR operation.(在数字电子学中,异或门是实现互斥或运算的基本构建模块。)
The XOR function is widely used in error detection and correction codes.(互斥或函数在差错检测和纠正码中应用广泛。 )