in reply to Subsets and adjacent values
I'm playing with Data::PowerSet. It creates all subsets of a list of elements.
I personally believe that before proceeding you should clarify your terms, especially those I highligheted above, since Mathematics is based upon precise definitions. You start talking about sets, and subsets, then mix them arbitrarily with lists. But sets and lists are different mathematical objects, albeit relatively similar ones. For sets, you cannot speak of "adjacency" while for lists you can.
Now, unless I'm grossly mistaken, it seems to me that your problem may be translated into an equivalent but simpler one, namely that of finding all of the substrings of a given string, perhaps with a constraint on their lenght, as per your example. HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subsets and adjacent values
by pc88mxer (Vicar) on May 30, 2008 at 15:44 UTC | |
by blazar (Canon) on May 30, 2008 at 18:55 UTC | |
by pc88mxer (Vicar) on May 31, 2008 at 17:48 UTC | |
|
Re^2: Subsets and adjacent values
by andreas1234567 (Vicar) on Jun 02, 2008 at 09:16 UTC |