Open weka511 opened 5 years ago
I have just timed the loop:
for i in range(len(string)):
for j in range(i,len(string)):
pass
which requires 21 m 46.51 s for a string of length 89799, so there is no way a naive Trie is going to give an answer within 5 minutes. Can we chunk string somehow?
I'll leave tis open until I understand Ukkonen's algorithm
Too slow at present