Abstract
A k-tuple common substring (abbr. k-CSS) is a common subsequence of two or more strings including at most k common substrings. In this paper, we present an algorithm for finding a longest k-CSS of two strings of lengths m and n in O(kmn) time and O(m + kn) space. Using this algorithm as a subroutine, a longest k-CSS of two circular strings is retrieved in O(kmn2) time and O(m + kn) space. Extending the idea in this algorithm, a longest common subsequence with the minimum number of common substrings of two strings is retrieved in O(mn) time and O(m + n) space. © 2026 Elsevier B.V.
| Original language | English |
|---|---|
| Article number | 106658 |
| Journal | Information Processing Letters |
| Volume | 195 |
| Online published | 14 Jun 2026 |
| DOIs | |
| Publication status | Online published - 14 Jun 2026 |
Funding
This work is supported by grants from the NSF of China (NSFC: 62272272 and U24A20257).
Research Keywords
- Common substring
- Constraint subsequence
- Divide-and-conquer
- Dynamic programming
- Longest common subsequence
Fingerprint
Dive into the research topics of 'Longest common subsequence including at most k segments'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver