Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XOR situations in real life? [closed]

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.

like image 235
potrzebie Avatar asked Sep 22 '13 14:09

potrzebie


2 Answers

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 ]

like image 52
moonwave99 Avatar answered Sep 23 '22 15:09

moonwave99


"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
like image 42
huseyin tugrul buyukisik Avatar answered Sep 19 '22 15:09

huseyin tugrul buyukisik