0

I have 1,000,000 strings with different lengths(the largest length is limited), I want to find all sub stirngs. Is there a good algorithm? for example,

  1. s1:abcd
  2. s2:bcd
  3. s3:cd
  4. s4:bcde

substrings are:

  1. s2 in s1
  2. s2 in s4
  3. s3 in s2
  4. s3 in s4
郭志良
  • 41
  • 1
  • 4

0 Answers0