|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Pattern Findingby artist (Parson) |
| on Sep 13, 2001 at 01:34 UTC ( #112026=note: print w/ replies, xml ) | Need Help?? |
|
Thanks Monks, for your excellent responses.
I am glad to see 'amazing ideas. I am in the process of running your code against different patterns. 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,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||