We present new algorithms for approximate string matching based in sim
ple, but efficient, ideas. First, we present an algorithm for string m
atching with mismatches based in arithmetical operations that runs in
linear worst case time for most practical cases. This is a new approac
h to string searching. Second, we present an algorithm for string matc
hing with errors based on partitioning the pattern that requires linea
r expected time for typical inputs.