31
$\begingroup$

I've been trying to find ways to explain to people why associativity is important. Subtraction is a good example of something that isn't associative, but it is not commutative.

So the best I could come up with is paper-rock-scissors; the operation takes two inputs and puts out the winner (assuming they are different).

So (paper rock) scissors= paper scissors = scissors,

But paper (rock scissors)= paper rock = paper.

This is a good example because it shows that associativity matters even outside of math.

What other real-life examples are there of commutative but non-associative operations? Preferably those with as little necessary math background as possible.

$\endgroup$
  • 1
    $\begingroup$ Your question is distinct, but these two questions are closely related: math.stackexchange.com/questions/327422/… and math.stackexchange.com/questions/160945/…. $\endgroup$ – Eric Thoma Dec 15 '13 at 20:49
  • 5
    $\begingroup$ The most "real-life" (or otherwise simplest) examples from the linked questions seem to be the operations: sending $(A,B)$ to the midpoint of $A$ and $B$, and $(x,y) \mapsto xy +1$ on the integers. $\endgroup$ – Eric Thoma Dec 15 '13 at 20:52
  • 1
    $\begingroup$ Mixing chemicals in chemistry is not necessarily associative when considering physical factors: i.e. suspensions/colloids. I do not know of an example where chemically mixing is not associative. The midpoint operation can be visualized with strings, where $(A,B)$ means you cut (or otherwise mark) at the midpoint of $A$ and $B$. $\endgroup$ – Eric Thoma Dec 15 '13 at 20:59
  • 1
    $\begingroup$ What's this "real-life" thing? $\endgroup$ – user714630 Dec 16 '13 at 10:22
  • $\begingroup$ See this answer; is "nor" not a real life example? $\endgroup$ – bof Jan 23 '16 at 6:44
22
$\begingroup$

Let $\circ$ be the "function" of $a$ and $b$ having a child. Then $$(a\circ b)\circ c \neq a\circ(b\circ c),$$ where I assume asexual reproduction...

$\endgroup$
  • 5
    $\begingroup$ I am not sure whether a +1 is in order for a good answer, or a -1 for suggestions of incest. Very good example for why associativity is important. $\endgroup$ – Eric Thoma Dec 15 '13 at 21:01
  • 1
    $\begingroup$ @Eric thanks, but it only works fine for asexual reproduction... $\endgroup$ – draks ... Dec 15 '13 at 21:21
  • 2
    $\begingroup$ I was interpreting as $\circ$ takes two people and outputs their child. Then $(a\circ b)\circ c$ is the child made by (the child of $a$ and $b$) and $c$. And $a\circ(b\circ c)$ is the child of $a$ and (the child of $b$ and $c$). Taking $a$, $b$, and $c$ as the top nodes, you may draw the family tree, and see that in terms of DNA, the operation is not associative. I suppose it is not incest actually though, but does suggest a wide age gap between couples. $\endgroup$ – Eric Thoma Dec 16 '13 at 1:25
  • $\begingroup$ Since $x\circ y$ is not defined for $x$ and $y$ both male or both female, $\circ$ is clearly a halfoperation over the set of human beings. $\endgroup$ – MattAllegro Jul 31 '15 at 23:34
  • 2
    $\begingroup$ This does not assume asexual reproduction if $a$ and $c$ are of one sex and $b$, $a\circ b$ and $b\circ c$ are of another. It also does not contain an incest if $a$, $b$ and $c$ are genetically unrelated, because then $a\circ b$ is unrelated to $c$ and $a$ is unrelated to $b \circ c$. It only implies relatively large (at least one generation) age differences. $\endgroup$ – Danijel Aug 27 '18 at 13:22
14
$\begingroup$

The averaging operation, defined by $$a\oplus b= \frac{a+b}2$$ is commutative but not associative.

$\endgroup$
11
$\begingroup$

What about commas?

Brian Rushton finds inspiration in cooking, his family and his dog.

vs.

Brian Rushton finds inspiration in cooking his family and his dog.

Shows pretty well how associativity makes a difference.

$\endgroup$
  • 1
    $\begingroup$ I've rolled this answer back to its previous state, I'm 99% sure the previous edit was not at all appropriate -- perhaps as a comment, but certainly not as a revised answer. $\endgroup$ – pjs36 Feb 29 '16 at 20:25
  • $\begingroup$ @pjs36, thank you. I also think that it wasn't appropriate. For reference, the comment was "Shouldn't we care about the fact that the word 'cooking' has two different meanings (noun vs verb or object vs process) in the two sentences?" $\endgroup$ – zneak Feb 29 '16 at 21:10
  • $\begingroup$ Sure! Yes, it took me a while to piece it together, but something seemed off. It was a pretty good comment, just not a good revision! $\endgroup$ – pjs36 Feb 29 '16 at 21:30
9
$\begingroup$

Mixing (same amount of ) primary colors:

(red + blue ) + blue = purple + blue = blue purple,

red + ( blue + blue ) = red + blue = purple.

$\endgroup$
  • $\begingroup$ Do you mean light or paint? $\endgroup$ – draks ... Dec 15 '13 at 21:26
  • 1
    $\begingroup$ I was thinking about paint on a canvas $\endgroup$ – Avitus Dec 15 '13 at 21:27
  • 5
    $\begingroup$ And also, if you took two grams of blue paint and one gram of red paint, the end result would be the same shade no matter the order you mixed them in. $\endgroup$ – Boluc Papuccuoglu Dec 15 '13 at 23:42
  • 1
    $\begingroup$ @Boluc Papuccuoglu yes and shouldn't it be the answer mixing equal amounts of primary colors? $\endgroup$ – MattAllegro Feb 7 '15 at 11:40
  • 1
    $\begingroup$ Also: water+(flour+yeast)$\ne$(water+flour)+yeast !! $\endgroup$ – MattAllegro Feb 7 '15 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.