A generalisation of a set in which repeated elements are treated as distinct. For example, if \(A=\{1,2,3\}\) and \(B=\{1,2,2,3\}\) are sets then they are equal to each other, whereas if they are multisets they are unequal.
The number of times that an element appears in a multiset is known as its multiplicity.