just search for the word in the document using an efficient string matching
algorithm
use Knuth Morris Pratt algorithm as it runs in O(m) time.

or use a data structure called TRIE
where u can search for the word in O(1) time any suggestions are always
welcomed

On Fri, Dec 10, 2010 at 3:13 PM, GOBIND KUMAR <[email protected]> wrote:

> Help me in solving this problem...       Define a data struct for the search 
> engine which will represent whether
>
> given word is there in the document or not .It  should be fast.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to