Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Divide a list of string into substrings

by LanX (Cardinal)
on Jun 23, 2020 at 10:16 UTC ( #11118378=note: print w/replies, xml ) Need Help??


in reply to Divide a list of string into substrings

Provided Re: Divide a list of string into substrings by BillKSmith is the right interpretation...

... this smells like a problem from lattice theory plus a cost function to be minimized.

Intuitively I'd try to start to take all pairs from the input and construct their decomposition.

Then you repeat this step with the resulted set of distincts substrings as new input again.

Keep repeating again till there are no new decompositions.

Though you need to mathematically proof that intermediate steps stay optimal and that the desired solution is reached.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-11-30 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?