Multiset and operations on multisets(union, intersection, addition, difference), solved problems
A multiset is a set of elements in which every element can occur more than once. This is the different property of multiset from the sets. a set in which the occurrence of an element can be more than one or can be 0. The multiplicity of the element is the occurrence of the element in the multiset. the multiplicity of an element can be 1 or more than one or can be 0. the size of the multiset is the sum of all the multiplicities of all the elements. for example: A= {1,1,1,1,2,2,3,4,4,5} The multiplicity of element '1' in multiset A is 4. The multiplicity of element '2' in multiset A is 2. The multiplicity of element '3' in multiset A is 1. The multiplicity of element '4' in multiset A is 2. The multiplicity of element '5' in multiset A is 1. the size of the multiset A is 10 In sets, the cardinality of the set is the multiplicity of the set. and rest all things the representation of a set and multiset is similar. in multisets A={1,1,1,1,2,2,3,4,4...