XOR situations in real life?

12,804

Solution 1

"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

Solution 2

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 ]

Solution 3

Think of it like telling a child they can have candy, or ice cream. But they can't have both!

Solution 4

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.

Solution 5

A Simple real life example is magnetic pole. Like poles repel while unlike poles attract.

Share:
12,804
potrzebie
Author by

potrzebie

10 GOSUB 10

Updated on August 16, 2022

Comments

  • potrzebie
    potrzebie over 1 year

    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.