Problems? Is your data what you think it is? | |
PerlMonks |
Pideonholes revisited.by BrowserUk (Patriarch) |
on Dec 12, 2015 at 14:04 UTC ( [id://1150111]=perlquestion: print w/replies, xml ) | Need Help?? |
BrowserUk has asked for the wisdom of the Perl Monks concerning the following question: In Combinatorics problem. (Updated with more info.) I asked how to efficiently distribute N cards amongst M pigeon holes where each hole must contain at least one card. I've now realised that for some variations of the problem I dealing with, I need to allow for the situation where the first or last pigeon hole, or both, can be zero. I thought this would be a simple tweak to the answers I already received; but once again I've come unstuck for an efficient solution. Is there one? With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
Back to
Seekers of Perl Wisdom
|
|