Boyer-Moore string search: Difference between revisions

m
remove draft label
(Emacs lisp support good suffix heuristic)
m (remove draft label)
Line 1:
{{draft task}}
 
;Task:
Line 5:
This algorithm is designed for pattern searching on certain types of devices which are backtracking-unfriendly such as [https://en.wikipedia.org/wiki/Tape_drive Tape drives] and [https://en.wikipedia.org/wiki/Hard_disk_drive Hard disks].
 
ItsIt works by first caching a segment of data from storage and match it against the pattern from the highest position backward to the lowest,. ifIf the matching fails, it will cache next segment of data, and move the start point forward to skip the portion of data which will definitely fail to match,. This continues until we successfully match the pattern or the pointer exceeds the data length.
 
[https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm Follow this link for more information about this algorithm].
4,105

edits