correct me if I m wrong..
grep function is to print all line which has substring..... containing...
the string to be search....

we r picking a line by line... by getline function... from text file...
approaches :
trie approach :if memory could not be a problem ..it would not be a problem
to use it... but we have to care of  freeing trie ... list after searching
for the given substring.....
KMP approach : would be otherwise... better....



With regards,

Praveen Raj
DCE-IT 4th yr

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

Reply via email to