http://qs321.pair.com?node_id=11118297


in reply to Divide a list of string into substrings

I think that I understand your requirements.

Given a set of strings.

Scoring a decomposition

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

Replies are listed 'Best First'.
Re^2: Divide a list of string into substrings
by Anonymous Monk on Jun 21, 2020 at 09:18 UTC

    Hi Bill

    You understood the problem. Your way guarantees the best result, but as you wrote for a longer list you will get an issue with the runtime.

    What I am looking for is: Some ideas to do the job, to get a good result (low score) in a reasonable runtime even for longer lists and strings. Knowing that this fast approach might not give the optimal solution (lowest score).