Finding all n-partitions of a set
- To: mathgroup at smc.vnet.net
- Subject: [mg98707] Finding all n-partitions of a set
- From: "Joe.Mapasapam" <mapasapam at gmail.com>
- Date: Thu, 16 Apr 2009 04:18:52 -0400 (EDT)
Please how can I find all n-partions of a set ? Say, i want partitions of the set (no order) {a,a,b,b} into 2, so we have { {{a,a,b,},{b}}, {{a,b,b},{a}}, {{a,a},{b,b}}, {{a,b},{a,b}} } is there already a built in function in mathematica ? i need so n can be any number
- Follow-Ups:
- Re: Finding all n-partitions of a set
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Finding all n-partitions of a set
- From: Leonid Shifrin <lshifr@gmail.com>
- Re: Finding all n-partitions of a set
- From: Adriano Pascoletti <adriano.pascoletti@dimi.uniud.it>
- Re: Finding all n-partitions of a set
- From: Adriano Pascoletti <adriano.pascoletti@dimi.uniud.it>
- Re: Finding all n-partitions of a set