Meaning & use
Associativity
Last updated
Meanings
noununcountablemathematics
A property of some mathematical operations where the grouping of numbers does not change the result.
Grammar: Uncountable: the associativity of addition.
Patterns
- associativity of an operation
- associativity holds
- associativity property
Addition and multiplication have associativity, but subtraction does not.
The associativity of addition means that (2 + 3) + 4 equals 2 + (3 + 4).
Students often confuse associativity with commutativity.
noununcountablecomputing
In computing, the property of an operator or expression where the order of grouping does not affect the outcome.
Grammar: Used in programming contexts.
Patterns
- left associativity
- right associativity
- operator associativity
In many programming languages, the assignment operator has right associativity.
Understanding operator associativity helps avoid bugs in complex expressions.
The compiler uses associativity rules to parse the expression.
Common combinations
- associativity of addition
- The associativity of addition is taught in elementary algebra.
- left associativity
- Most arithmetic operators have left associativity.
- associativity property
- The associativity property allows us to regroup terms without changing the sum.
Synonyms and how they differ
Opposites
Word family
- associative adjective
- Describing an operation that has associativity.
- associate verb
- To group or connect.
Commonly confused: Associativity or commutativity? Associativity or distributivity?
Associativity vs commutativity
Commutativity means changing the order of operands does not change the result (e.g., a + b = b + a); associativity is about grouping.
Associativity vs distributivity
Distributivity involves multiplying over addition, like a(b + c) = ab + ac.
Practice
Which operation is associative?
Choose one answer.
Addition is associative: (a + b) + c = a + (b + c). Subtraction and division are not associative, and exponentiation is not associative either.
Make it your own
Write a sentence using “Associativity”, then check it and compare it with the examples above.