DocumentCode :
2295873
Title :
Matching for run-length encoded strings
Author :
Apostolico, Alberto ; Landau, Gad M. ; Skiena, Steven
Author_Institution :
Dept. of Comput. Sci., Purdue Univ., West Lafayette, IN, USA
fYear :
1997
fDate :
11-13 Jun 1997
Firstpage :
348
Lastpage :
356
Abstract :
Measuring the similarity between two strings, through such standard measures as Hamming distance, edit distance, and longest common subsequence, is one of the fundamental problems in pattern matching. We consider the problem of finding the longest common subsequence of two strings. A well-known dynamic programming algorithm computes the longest common subsequence of strings X and Y in O(|X|·|Y|) time. We develop significantly faster algorithms for a special class of strings which emerge frequently in pattern matching problems. A string S is run-length encoded if it is described as an ordered sequence of pairs (σ,i), each consisting of an alphabet symbol σ and an integer i. Each pair corresponds to a run in S consisting of i consecutive occurrences of σ. For example, the string aaaabbbbcccabbbbcc can be encoded as a4b4c3 a1b4c2. Such a run-length encoded string can be significantly shorter than the expanded string representation. Indeed, runlength coding serves as a popular image compression technique, since many classes of images, such as binary images in facsimile transmission, typically contain large patches of identically-valued pixels
Keywords :
image coding; pattern matching; runlength codes; string matching; Hamming distance; alphabet symbol; binary images; consecutive occurrences; dynamic programming algorithm; edit distance; expanded string representation; facsimile transmission; image compression; longest common subsequence; ordered sequence; pattern matching; pixels; run-length encoded strings matching; runlength coding; similarity measure; Character recognition; Computer science; Encoding; Hamming distance; Image coding; Measurement standards; Optical character recognition software; Pattern matching; Pixel; USA Councils;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Compression and Complexity of Sequences 1997. Proceedings
Conference_Location :
Salerno
Print_ISBN :
0-8186-8132-2
Type :
conf
DOI :
10.1109/SEQUEN.1997.666929
Filename :
666929
Link To Document :
بازگشت