Loading...
Please wait, while we are loading the content...
Similar Documents
Computing a longest common subsequence of two strings when one of them is run length encoded
| Content Provider | Semantic Scholar |
|---|---|
| Author | Ahsan, Shegufta Bakht Moosa, Tanaeem M. Rahman, Mohammad Sohel Shahriyar, Shampa |
| Copyright Year | 2015 |
| Abstract | Given two strings, the longest common subsequence (LCS) problem computes a common subsequence that has the maximum length. In this paper, we present new and efficient algorithms for solving the LCS problem for two strings one of which is run length encoded (RLE). We first present an algorithm that runs in O(gN) time, where g is the length of the RLE string and N is the length of uncompressed string. Then based on the ideas of the above algorithm we present another algorithm that runs inO(R log(log g)+N) time, whereR is the total number of ordered pairs of positions at which the two strings match. Our first algorithm matches the best algorithm in the literature for the same problem. On the other hand, forR < gN/ log(log)g, our second algorithm outperforms the best algorithms in the literature. |
| File Format | PDF HTM / HTML |
| Alternate Webpage(s) | http://www.dcc.ufla.br/infocomp/images/artigos/v10.3/art05.pdf |
| Language | English |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Article |