in reply to Pattern Finding
Thanks Monks, for your excellent responses.
such as: minimum sum of length of patterns.
I am glad to see 'amazing ideas. I am in the process of running your code against different patterns.
Meanwhile test your code against:
String: bookhelloworldhellohellohihellohiworldhihelloworldhihellobookpenbookpenworld Number of Patterns:5 ========================================================== Deduce patterns:world pen, book, hi, helloSome more rules to identify patterns.
1. I am not looking specifically for dictionary words. 2. One Pattern cannot be part of another pattern. 3. There could be multiple answers. 4. A Pattern may show up only once. 5. A Pattern may contain single character only 6. A Pattern may contain space also.In case of multiple answer there could be 'techniques' we can apply to obtain the possible best
such as: minimum sum of length of patterns.
Thanks,
Artist.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Pattern Finding
by demerphq (Chancellor) on Sep 17, 2001 at 03:19 UTC | |
Re: Re: Pattern Finding
by tachyon (Chancellor) on Sep 24, 2001 at 21:12 UTC | |
Re: Re: Pattern Finding
by runrig (Abbot) on Sep 13, 2001 at 03:20 UTC | |
by Anonymous Monk on Sep 13, 2001 at 19:15 UTC | |
by runrig (Abbot) on Sep 13, 2001 at 21:12 UTC |
In Section
Seekers of Perl Wisdom