Computing similarity of run-length encoded strings with affine gap penalty

  • Authors:
  • Jin Wook Kim;Amihood Amir;Gad M. Landau;Kunsoo Park

  • Affiliations:
  • School of Computer Science and Engineering, Seoul National University, Seoul, 151-742, Republic of Korea;Department of Computer Science, Bar-Ilan University, 52900 Ramat-Gan, Israel and Johns Hopkins University, United States;Department of Computer Science, University of Haifa, Mount Carmel, Haifa 31905, Israel and Polytechnic University, United States;School of Computer Science and Engineering, Seoul National University, Seoul, 151-742, Republic of Korea

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2008

Quantified Score

Hi-index 5.23

Visualization

Abstract

The problem of computing the similarity of two run-length encoded strings has been studied for various scoring metrics. Many algorithms have been developed for the longest common subsequence metric and some algorithms for the Levenshtein distance metric and the weighted edit distance metric. In this paper we consider similarity based on the affine gap penalty metric which is a more general and rather complicated scoring metric than the weighted edit distance. To compute the similarity in this model efficiently, we convert the problem into a path problem on a directed acyclic graph and use some properties of maximum paths in this graph. We present an O(nm^'+n^'m) time algorithm for computing the similarity of two run-length encoded strings in the affine gap penalty model, where n and m are the lengths of given two strings whose run-length encoded lengths are n^' and m^', respectively.