JuliaMath / Combinatorics.jl

A combinatorics library for Julia
http://juliamath.github.io/Combinatorics.jl/dev/
Other
215 stars 58 forks source link

Stars and bars (multisets) #87

Open atthom opened 5 years ago

atthom commented 5 years ago

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!

Stivanification commented 1 year ago

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?