Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Divide a list of string into substrings

by jcb (Parson)
on Jun 23, 2020 at 01:39 UTC ( [id://11118373]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Divide a list of string into substrings
in thread Divide a list of string into substrings

If the common substring is in the middle of each string this solution will not find it.

That is the major limitation to this approach. On the other hand, your sample data did not include those and this approach could be a useful preprocessing step to greatly the reduce the volume of input before applying a much-less-efficient brute force search to find those inner common substrings, if they are even a problem.

  • Comment on Re^3: Divide a list of string into substrings

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found