To calculate the cardinality of a set:
\[ C = |S| \]
Where:
Set cardinality refers to the number of elements contained in a set. It measures the "size" of the set. For finite sets, cardinality is simply the count of all its elements. For infinite sets, cardinality becomes more complex and is defined by the concept of one-to-one correspondence between the elements of the set and the elements of other sets.
Consider the set: {apple, banana, orange, apple}
The unique elements are: {apple, banana, orange}
The cardinality of this set is 3.
Consider the set: {dog, cat, bird, dog, cat}
The unique elements are: {dog, cat, bird}
The cardinality of this set is 3.