I'm trying to explain XOR logic compared to OR logic.
OR examples are many, e.g. "i need to be inside or use an umbrella to stay dry", but XOR examples are harder.
I'm trying to explain XOR logic compared to OR logic.
OR examples are many, e.g. "i need to be inside or use an umbrella to stay dry", but XOR examples are harder.
XOR is like cheating on your girlfriend: if you are alone with her it is ok, if you are alone with the other girl is ok, if you with none or with both you are screwed.
[ no girls were harmed for the sake of this example ]
"OR" example of yours gives about "dryness" while my "XOR" tells "if an action is a waste" .
If you are inside while using an umbrella == waste.
If you are outside while not using an umbrella == waste again.
IF you are inside while not using umbrella, it is ok.
If you are outside while using umbrella, it is ok.
Actually, neural networks getting popular and will become real life. Plus, there are many xor examples made for neural network training, there are so many of them that you need to have an umbrella to stay dry.
It's up to you to give some meaning to 1s and 0s.
Triple XOR:
Moving through time : yes=1, no=0
Moving through space: yes=1, no=0
Screaming : yes=1, no=0
Mission: escaping from a falling-piano.
time :(1,0,0) => (1) see the future,
call an ambulance
space :(0,1,0) => (1) walk one step back
so piano misses you
scream :(0,0,1) => (1) people hear you
people help you get to
emergency of hospital
time space :(1,1,0) => (0) at that time and location,
you are kept as hostage
in a robbery scene
time scream :(1,0,1) => (0) yelling at wrong time,
will not save you
space scream :(0,1,1) => (0) you evade the piano,
but you are still screaming,
:D
time space scream :(1,1,1) => (1) you see future and call ambulance,
also move
now you are in robbery
but you scream
so robbers escape
they had fake guns
you save money and life
(none) :(0,0,0) => (0) piano falls, noone hears
also they loot your body
epic items
Think of it like telling a child they can have candy, or ice cream. But they can't have both!
The room has two light switches controlling one light bulb. If both switches are ON, the light is off. If one is ON, the light is on, if none is ON, the light is off.
A Simple real life example is magnetic pole. Like poles repel while unlike poles attract.
Pushing both buttons opens the trap door, so we wired that to the AND gate. Pushing only one of the buttons, either one, releases the hounds, so we wired that to the XOR gate.
Method of operation:
Press one of the buttons to release the dogs. Once subject is running frantically press both buttons to open the trap door. Caution, opening the trap door first may be disastrous for the dogs.