Dictionary entry

MEX

noun, proper nountechnicalmathematicscomputing

Last updated

UK/ˌem iː ˈeks/
US/ˌem iː ˈeks/

Meanings

  1. 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.

  2. 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}?

Make it your own

Write a sentence using “MEX”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words