Multiset Guide, Meaning , Facts, Information and Description
In mathematics, a multiset (also called a bag) differs from a set in that each member has a multiplicity, which is a cardinal number indicating (loosely speaking) how many times it is a member, or perhaps how many memberships it has in the multiset. For example, in the multiset { a, a, b, b, b, c }, the multiplicities of the members a, b, and c are respectively 2, 3, and 1.One of the most natural and simple examples is the multiset of prime factors of a number. Another is the multiset of solutions of an algebraic equation. Everyone learns in secondary school that a quadratic equation has two solutions, but in some cases they are both the same number. Thus the multiset of solutions of the equation could be { 3, 5 }, or it could be { 4, 4 }. In the latter case it has a solution of multiplicity 2.
| Table of contents |
|
2 Operations 3 Counting -- "multiset coefficients" 4 Free commutative monoids |
Formally multisets can be defined, within set theory, as partial functions that map elements to positive natural numbers. So in terms of sets
The usual set operations such as union, intersection and Cartesian product can be easily generalized for multisets.
The number of submultisets of size k in a set of size n is the multiset coefficient
Formal definition
Operations
Counting -- "multiset coefficients"
where the expressions to the right of "=" are binomial coefficients, i.e., the number of such multisets is the same as the number of subsets of size k in a set of size n + k − 1. Unlike the situation with sets, this cardinality will not be 0 when k > n. One simple way to prove this involves representing multisets in the following way. First, consider the notation for multisets that would represent { a, a, a, a, a, a, b, b, c, c, c, d, d, d, d, d, d, d } (6 as, 2 bs, 3 cs, 7 ds) in this form:
There is a connection with the free object concept: the free commutative monoid on a set X can be taken to be the set of finite multisets with elements drawn from X, with the obvious addition operation.
This is an Article on Multiset. Page Contains Information, Facts Details or Explanation Guide About Multiset Free commutative monoids
