find a string(pattern) in a given text?

Write a efficient algorithm to do this

find a string(pattern) in a given text?

Is Knuth Morris Pratt better or worse than Boyer Moore?

Is that true for all type of patterns and text

find a string(pattern) in a given text?

Have you tried KMP (Knuth Morris Prutt) algorithm?

or u want something faster ?