No CrossRef data available.
Article contents
Parity Lights
Published online by Cambridge University Press: 01 August 2016
Extract
Almost everybody has a light in their house that can be switched on and off from two or more different places. If your electrician set up the wiring properly, you are able to toggle the light with every single switch, independent of the others' current configuration.
We may think of the switches as implementing a parity function. If we label the two positions of a switch by 0 and 1, the light is on if the sum of switch positions is even and off if this sum is odd (or vice versa). So in the common case of only two switches, ‘light on’ is just the binary relation xor. (Not all real-life installations are of this kind. We also find the binary and implemented in a few houses—which can be very annoying, and even dangerous, at nights.)
- Type
- Articles
- Information
- Copyright
- Copyright © The Mathematical Association 2004