I'm assuming not since it seems legal to, say, have the string "mom" be a substring of another string, "moment" in the test files-to-be. Somehow, your trie will have to keep track of this substring problem, though if the test files will have no such substrings, wow, that'd be great! We await the TA's answer... |