note
AppleFritter
<p>
I know, it's a bit confusing. That's why I wrote:
</p>
<blockquote><p><i>
I'm trying to generate all multisets (bags) of a specific total "weight" (let's call it w), where each element comes from a given list (of numbers, in this case), and each list element may have multiplicity 0..w in each multiset.
</i></p></blockquote>
<p>
and:
</p>
<blockquote><p><i>
The order in which the multisets itself are generated isn't important to me either, BTW. I've only listed them in order for the sake of readability.
</i></p></blockquote>
<p>
I'm sure there's standard terms for these, too, terms that I simply don't know.
</p>
1198509
1198535