Thenbsppattern-matching problemnbspis as follows given a


The pattern-matching problem is as follows: Given a string, S, of text, and a pat- tern, P, ?nd the ?rst occurrence of in SApproximate pattern matching allows mismatches of three  types:

(1) A character can be in that is not in P.

(2) A character can be in that is not in S.

(3) and can differ in a position.

As an example, if we are searching for the pattern "textbook" with at most three mismatches in the string "data structures txtborpk", we ?nd a match (insert an e, change an to an o, delete a p). Give an O(MN) algorithm to solve the approximate string matching problem, where = |P| and = |S|.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Thenbsppattern-matching problemnbspis as follows given a
Reference No:- TGS01274777

Expected delivery within 24 Hours