Article 4GGN5 Rock, paper, scissors, algebra

Rock, paper, scissors, algebra

by
John
from John D. Cook on (#4GGN5)

Aatish Bhatia posted something interesting on Twitter: if you define multiplication on Rock, Paper, Scissors to be the winner of a match, the result is commutative but not associative.

Here's a neat thing about the algebra of Rock, Paper, Scissors. If you define 'multiplication' as the game's winner, then it's commutative, i.e.

P x R = R x P = P
S x R = R x S = R
S x P = P x S = S

However, it isn't associative! e.g., (R x P) x S is not the same as R x (P x S)

- Aatish Bhatia (@aatishb) June 3, 2019

The same is true of the extension Rock, Paper, Scissors, Lizard, Spock

rock_spock.png.

Related post: Weakening the requirements of a group

22PfmmcwKPQ
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments