A STRING MATCHING ALGORITHM BASED ON SEGMENTING MATCHING

Liu Xugang,Huang Hai,Ma Hong
DOI: https://doi.org/10.3969/j.issn.1000-386X.2012.03.035
2012-01-01
Abstract:Existing algorithms have bigger dependence to the pertinence between text and patterns,to avoid this,a string matching algorithm named SM based on segmenting is proposed.This algorithm cuts text first and then matches the patterns,all with the aid of special characters,and it is insensitive to the content and length of patterns in matching course.It is proved that SM algorithm does behave steadily in performance by analysing it and comparing it through experiment both with the classical algorithms,especially in the circumstance of multi-pattern strings matching,SM algorithm performs better than Wu-Manber algorithm in speed and space cost.
What problem does this paper attempt to address?