Combinatorics.jl icon indicating copy to clipboard operation
Combinatorics.jl copied to clipboard

Stars and bars (multisets)

Open atthom opened this issue 6 years ago • 1 comments

I was looking for a Julia implementation of this known combinatorics problem: Stars and bars

I have some struggle to use multiset_combinations and multiset_permutations and I didn't find any good documentation on it.

I wanted to compute/enumerate a multiset number using this method. However, It seems that multiset_combinations is performing a combination on multisets, which is something very different. I'm still new to Julia so I might be wrong.

Also, If you can point me to a workaround for this problem, I'll be glad to hear it!

atthom avatar Oct 15 '19 15:10 atthom

I'm rather late to the party, but it's not exactly clear to me what you are looking for. Can you give an example of what you would expect multiset_combinations to do?

Stivanification avatar Dec 26 '22 13:12 Stivanification