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,
- s1:abcd
- s2:bcd
- s3:cd
- s4:bcde
substrings are:
- s2 in s1
- s2 in s4
- s3 in s2
- s3 in s4
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,
substrings are: