The greedy algorithm for the minimum common string partition problem

  • Authors:
  • Marek Chrobak;Petr Kolman;Jiří Sgall

  • Affiliations:
  • University of California, Riverside, CA;Charles University, Czech Republic;Academy of Sciences of the Czech Republic, Czech Republic

  • Venue:
  • ACM Transactions on Algorithms (TALG)
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

In the Minimum Common String Partition problem (MCSP), we are given two strings on input, and we wish to partition them into the same collection of substrings, minimizing the number of the substrings in the partition. This problem is NP-hard, even for a special case, denoted 2-MCSP, where each letter occurs at most twice in each input string. We study a greedy algorithm for MCSP that at each step extracts a longest common substring from the given strings. We show that the approximation ratio of this algorithm is between Ω(n0.43) and O(n0.69). In the case of 2-MCSP, we show that the approximation ratio is equal to 3. For 4-MCSP, we give a lower bound of Ω(log n).