Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Partition of a list into unequal sets' topicStudent Support Forum > General > Archives > "Partition of a list into unequal sets"

Help | Reply To Topic
Author Comment/Response
Svetlana
02/22/05 07:43am

In Matematika presented a built-in function

Partition[list,n]

which returns non-overlapping sublists of equal length given by n, but how to perform a function, which will give back all possible partitions of the given list, like

{a,b,c}->{{{a},{b},{c}},{{a},{b,c}},{{a,b},{c}},{{a,c},{b}},{a,b,c}}

and so on

URL: ,
Help | Reply To Topic