Re: List partitioning
- From: bim <invalid@xxxxxxxxxx>
- Date: Wed, 29 Oct 2008 21:59:13 +0100
Boris Borcic a écrit :
I fear this isn't clear enough. A natural illustration would be the topmost reduction of a search for an optimal partition of N items into P groups where P does /not/ divide N, into searches over all ways of distributing the N items into complementary subsets of N' and N'' items, to divide in turn (this time /evenly/) into P' and P'' groups respectively.
Where N',N'',P' and P'' are fixed as a function of N and P, ie
P' = N mod P
P'' = P - P'
N' = ((N//P)+1)*P'
N'' = (N//P)*P''
For each choice of distribution of N items into N'- and N''-sized subsets, the further optimal partition of each of these complementary subsets can then proceed independently (I think, given your description of the problem).
So, if I understood correctly, let's say I have 10 items to split into 4 groups. I should first list all the ways of distributing these 10 items into 2 groups (6 items + 4 items). Then for each of these partitions, I should look for the best way to partition the group of 6 items into 2 sub-groups, and the group of 4 items into 2 sub-groups too. And finally keep the best full partition among all these partitions ? Would this be really faster ? I guess you mean that I would have to exclude some top-level paritions (ie: 6/4) first because they wouldn't lead to suitable full-partitions anyway ?
.
- Follow-Ups:
- Re: List partitioning
- From: Boris Borcic
- Re: List partitioning
- References:
- List partitioning
- From: BimKif
- Re: List partitioning
- From: pineapple . link
- Re: List partitioning
- From: bim
- Re: List partitioning
- From: Boris Borcic
- Re: List partitioning
- From: bim
- Re: List partitioning
- From: Boris Borcic
- Re: List partitioning
- From: bim
- Re: List partitioning
- From: Boris Borcic
- Re: List partitioning
- From: bim
- Re: List partitioning
- From: bborcic
- Re: List partitioning
- From: bim
- Re: List partitioning
- From: Boris Borcic
- Re: List partitioning
- From: Boris Borcic
- List partitioning
- Prev by Date: Re: List partitioning
- Next by Date: Re: printing the value of the variables passed
- Previous by thread: Re: List partitioning
- Next by thread: Re: List partitioning
- Index(es):
Relevant Pages
|