Paper record

W1977957904

The greedy algorithm for the minimum common string partition problem

Marek Chrobák, Petr Kolman, Jiří Sgall

Year
2005
Venue
ACM Transactions on Algorithms
References
12
Cited by
32

Details and counts from OpenAlex.

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 Ω(n 0.43) and O (n 0.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).