Skip to main navigation Skip to search Skip to main content

Longest common subsequence including at most k segments

  • Tiantian Li
  • , Haitao Jiang
  • , Xuefeng Cui
  • , Haodi Feng
  • , Daming Zhu*
  • , Lusheng Wang
  • *Corresponding author for this work

Research output: Journal Publications and Reviews › RGC 21 - Publication in refereed journal › peer-review

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 languageEnglish
Article number106658
JournalInformation Processing Letters
Volume195
Online published14 Jun 2026
DOIs
Publication statusOnline 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