Space-efficient STR-IC-LCS computation

From MaRDI portal
Publication:6169544

DOI10.1007/978-3-031-23101-8_25zbMATH Open1529.68332arXiv2210.07979OpenAlexW4313429639MaRDI QIDQ6169544FDOQ6169544


Authors: Yuuki Yonemoto, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai Edit this on Wikidata


Publication date: 14 August 2023

Published in: Lecture Notes in Computer Science (Search for Journal in Brave)

Abstract: One of the most fundamental method for comparing two given strings A and B is the longest common subsequence (LCS), where the task is to find (the length) of the longest common subsequence. In this paper, we address the STR-IC-LCS problem which is one of the constrained LCS problems proposed by Chen and Chao [J. Comb. Optim, 2011]. A string Z is said to be an STR-IC-LCS of three given strings A, B, and P, if Z is one of the longest common subsequences of A and B that contains P as a substring. We present a space efficient solution for the STR-IC-LCS problem. Our algorithm computes the length of an STR-IC-LCS in O(n2) time and O((ell+1)(nell+1)) space where ell is the length of a longest common subsequence of A and B of length n. When ell=O(1) or nell=O(1), then our algorithm uses only linear O(n) space.


Full work available at URL: https://arxiv.org/abs/2210.07979







Cites Work


Cited In (2)





This page was built for publication: Space-efficient STR-IC-LCS computation

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q6169544)