I need to split a set A into two sets B and C, and find all possible splits of A' elements in B and C.
So when first split size is 2 then
[abcd] ->[ab] [cd], [ac] [bd], [cd] [ab]..
And when first split size is 1 then
[abcd] -> [b] [acd], [a] [bdc], [d] [abc]..
Any idea how this can be done?