Dictionary entry
cardinality
Last updated
Meanings
nouncountable or uncountablemathematics
The number of items in a set or collection.
Grammar: Often used with 'of': the cardinality of the set. Can be countable in phrases like 'different cardinalities'.
Patterns
- the cardinality of something
- a set of cardinality n
- countable/uncountable cardinality
The cardinality of the set {a, b, c} is three.
In database design, cardinality refers to the number of relationships between two tables.
Mathematicians compare the cardinalities of infinite sets using one-to-one correspondence.
noununcountablecomputing
The number of distinct values in a column of a database table.
Grammar: Used in computing contexts, often without an article: 'high cardinality'.
Patterns
- high/low cardinality
- cardinality of a column
A column with many unique values has high cardinality.
Indexes work best on columns with high cardinality.
The query optimizer uses cardinality estimates to choose a plan.
Word forms
| plural | cardinalities |
|---|
Common combinations
- the cardinality of a set
- The cardinality of a set is the number of its elements.
- high cardinality
- High cardinality columns can slow down some operations.
- low cardinality
- Low cardinality means few distinct values.
- countable cardinality
- The integers have countable cardinality.
- uncountable cardinality
- The real numbers have uncountable cardinality.
Synonyms and how they differ
Word family
- cardinal adjective
- Relating to the number of elements; also a number like one, two, three.
Commonly confused: cardinality or ordinality?
cardinality vs ordinality
Ordinality refers to position in a sequence (first, second), while cardinality refers to the number of items.
Practice
What is the cardinality of the set {red, green, blue}?
Choose one answer.
Cardinality means the number of elements, so the set has cardinality 3. The order of colors would be ordinality, not cardinality.
Make it your own
Write a sentence using “cardinality”, then check it and compare it with the examples above.