Proving optimized function is still correct

Peter Hansen peter at engcorp.com
Tue Nov 13 09:34:34 EST 2001


Terry Reedy wrote:
> 
> <salvasan at yahoo.com> wrote:
> > I gave a colleague of mine a Python function to optimise:
> 
> Responding would have been easier if you had given a succinct
> description of what your function computes:  the number of ways of
> distributing n indistinguishable items among m labelled bins, with
> bins possibly left empty, and where 'labelled' means that each
> permutation among bins is counted separately.

Sounded like another class assignment to me...

(Am I becoming paranoid? :)
-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list