Dictionary entry
MEX
Last updated
Meanings
nouncountabletechnicalmathematicscomputing
In a well-ordered set, the smallest element of the whole set that is not present in a given subset.
Grammar: Use it with of: the MEX of a set. It is usually written in capitals.
Patterns
- the MEX of a set
- the MEX of a subset
- compute the MEX
For the set {0, 1, 2, 4}, the MEX is 3 because 3 is the smallest non-negative integer not in the set.
The algorithm finds the MEX of each prefix of the array.
In this problem, you must compute the MEX of the given subset.
proper nounproper
A written abbreviation for Mexico, used especially in addresses, airport codes, and informal writing.
Grammar: Used as a short form of the country name; often written with a period in British English (Mex.) but without one in codes (MEX).
Patterns
- MEX (airport code)
- Mex. (country abbreviation)
The flight from Madrid to MEX takes about eleven hours.
Please send the package to Mexico City, MEX, Mexico.
The country code for Mexico is MEX in many international systems.
Common combinations
- the MEX of a set
- The MEX of a set is the smallest non-negative integer not in it.
- compute the MEX
- You can compute the MEX in linear time with a boolean array.
- MEX value
- The MEX value of the empty set is 0.
- MEX operation
- The MEX operation is often used in game theory problems.
Synonyms and how they differ
- minimum excluded value
- This is the full phrase that MEX stands for; it is used in formal definitions and is clearer for learners.
Commonly confused: MEX or Mex.?
MEX vs Mex.
Mex. is a common abbreviation for Mexico or Mexican, while MEX in mathematics means 'minimum excluded value'. The context usually makes the difference clear.
Practice
What is the MEX of the set {0, 2, 3}?
Choose one answer.
The MEX is the smallest non-negative integer not in the set. 0, 2, and 3 are present, so the smallest missing one is 1. 0 is tempting because it is the smallest number overall, but it is already in the set.
Make it your own
Write a sentence using “MEX”, then check it and compare it with the examples above.