What's the algorithm ??
更新1:
you are not answering my question. My question is, for example , all the words are already stored in the bstree, now i enter a prefix, it should return all the phrases which start with the prefix.
更新2:
e.g. I enter : vat it should gives (if they are in the tree) vata vatkb vatrke vatlslei vatkewjo vatkdow ---- there is no more phrases start with vat ;
更新3:
YOU ARE RIGHT! I don't know how to search a substring within a string !