I want to count the number of possible linear peptides of different lengths of a given mass. I have tried a branch and bound approach which works for small numbers but it unexpectedly stops when length of peptide becomes 6 or more.

So, I'm looking for an efficient algorithm or any suggestion you think useful.

I've attached my python code.

More Ruhshan Ahmed Abir's questions See All
Similar questions and discussions