Definition · applies to collections · also called bag

High school

Consider a set, in which each element appears only once. A multiset is like a set, except that an element can appear more than once.

Undergraduate

A multiset is a collection in which order does not matter but repetition does. Formally, a function from a set to the positive integers that gives the multiplicity of each element.

Examples

Examples

Non-examples

Things that may be mistaken for examples.

Distinctions involving this term

  • Types of collections: Mathematics has several kinds of “a bunch of things,” which differ in whether order and repetition matter. A set ignores order and repetition. A multiset keeps repetition. A sequence keeps order and repetition. “Collection” is informal, and “group” is a technical term for a set with an operation.

All definitions · All distinctions · All examples