WordGarden.io
Back to search

cardinality

C2
noun

Pronunciation

UK

  • /kɑːdɪˈnælɪti/countableuncountablenoun

US

  • /kɑrdɪˈnælɪti/countableuncountablenoun

Description

Imagine you're counting the apples in a basket – that count represents the cardinality of the apple set! It’s a precise way to say “how many” when talking about groups or sets. In mathematics, it means the number of elements in a set. And it isn’t limited to everyday counting: mathematicians also use it to compare infinite sets in surprisingly subtle ways. In computer science and databases, you’ll also hear it when people talk about how many distinct values a field can take, or whether a relationship is one-to-one, one-to-many, and so on. If you’re sorting LEGO bricks by color, the cardinality of the red-brick pile is simply how many red bricks you have.

Examples

  1. 1

    Set theory

    Two sets can have the same cardinality even if they contain different elements.

  2. 2

    Database filtering

    In database design, this column has high cardinality, so it is useful for filtering results.

    • Domain

      high cardinality

      many different values

  3. 3

    Data relationships

    The diagram shows a one-to-many cardinality between customers and orders.

    • Domain

      one-to-many cardinality

      one item on one side can be linked to many on the other side

Forms and spellings

1 form open this card.

Main spelling

  • cardinalitynoun