Re: efficiently splitting up strings based on substrings

2009-09-06 Thread 7stud
On Sep 6, 1:23 am, 7stud wrote: > On Sep 6, 1:14 am, 7stud wrote: > > > > > On Sep 5, 5:29 pm, per wrote: > > > > On Sep 5, 7:07 pm, "Rhodri James" wrote: > > > > > On Sat, 05 Sep 2009 23:54:08 +0100, per wrote: > > > > > On Sep 5, 6:42 pm, "Rhodri James" wrote: > > > > >> On Sat, 05 Sep 2009

Re: efficiently splitting up strings based on substrings

2009-09-06 Thread 7stud
On Sep 6, 1:14 am, 7stud wrote: > On Sep 5, 5:29 pm, per wrote: > > > > > On Sep 5, 7:07 pm, "Rhodri James" wrote: > > > > On Sat, 05 Sep 2009 23:54:08 +0100, per wrote: > > > > On Sep 5, 6:42 pm, "Rhodri James" wrote: > > > >> On Sat, 05 Sep 2009 22:54:41 +0100, per wrote: > > > >> > I'm try

Re: efficiently splitting up strings based on substrings

2009-09-06 Thread 7stud
On Sep 5, 5:29 pm, per wrote: > On Sep 5, 7:07 pm, "Rhodri James" wrote: > > > > > On Sat, 05 Sep 2009 23:54:08 +0100, per wrote: > > > On Sep 5, 6:42 pm, "Rhodri James" wrote: > > >> On Sat, 05 Sep 2009 22:54:41 +0100, per wrote: > > >> > I'm trying to efficiently "split" strings based on wha

Re: efficiently splitting up strings based on substrings

2009-09-05 Thread Rhodri James
On Sun, 06 Sep 2009 00:29:14 +0100, per wrote: it's exactly the same problem, except there are no constraints on the strings. so the problem is, like you say, matching the substrings against the string x. in other words, finding out where x "aligns" to the ordered substrings abc, and then dete

Re: efficiently splitting up strings based on substrings

2009-09-05 Thread per
On Sep 5, 7:07 pm, "Rhodri James" wrote: > On Sat, 05 Sep 2009 23:54:08 +0100, per wrote: > > On Sep 5, 6:42 pm, "Rhodri James" wrote: > >> On Sat, 05 Sep 2009 22:54:41 +0100, per wrote: > >> > I'm trying to efficiently "split" strings based on what substrings > >> > they are made up of. > >> >

Re: efficiently splitting up strings based on substrings

2009-09-05 Thread Rhodri James
On Sat, 05 Sep 2009 23:54:08 +0100, per wrote: On Sep 5, 6:42 pm, "Rhodri James" wrote: On Sat, 05 Sep 2009 22:54:41 +0100, per wrote: > I'm trying to efficiently "split" strings based on what substrings > they are made up of. > i have a set of strings that are comprised of known substrings.

Re: efficiently splitting up strings based on substrings

2009-09-05 Thread per
On Sep 5, 6:42 pm, "Rhodri James" wrote: > On Sat, 05 Sep 2009 22:54:41 +0100, per wrote: > > I'm trying to efficiently "split" strings based on what substrings > > they are made up of. > > i have a set of strings that are comprised of known substrings. > > For example, a, b, and c are substrings

Re: efficiently splitting up strings based on substrings

2009-09-05 Thread Rhodri James
On Sat, 05 Sep 2009 22:54:41 +0100, per wrote: I'm trying to efficiently "split" strings based on what substrings they are made up of. i have a set of strings that are comprised of known substrings. For example, a, b, and c are substrings that are not identical to each other, e.g.: a = "0" * 5

efficiently splitting up strings based on substrings

2009-09-05 Thread per
I'm trying to efficiently "split" strings based on what substrings they are made up of. i have a set of strings that are comprised of known substrings. For example, a, b, and c are substrings that are not identical to each other, e.g.: a = "0" * 5 b = "1" * 5 c = "2" * 5 Then my_string might be: