in reply to Powerset short-circuit optimization
Would it be right to conclude that (assuming an efficient generator that doesn't generate duplicates), that you will only achieve this optimisation when generating multiple (related) powersets?
That is, in your second example,
Ie. If set2 were E, C, B, A, no optimisation would be possible?
Or, can the code assume that the sets are pre-ordered? Or should it sort them?
Or does the definition of powersets imply some ordering?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Powerset short-circuit optimization
by Limbic~Region (Chancellor) on Oct 03, 2006 at 21:42 UTC |