The cardinality of a set is the count of elements it contains. You write to denote the cardinality of set .
If , then . If , then .
Cardinality tells you the size of a set. In programming, this is like calling or on a collection.
Number of elements
The cardinality of a set is the count of elements it contains. You write to denote the cardinality of set .
If , then . If , then .
Cardinality tells you the size of a set. In programming, this is like calling or on a collection.