A note on the longest common compatible prefix problem for partial words

M. Crochemore, C. S. Iliopoulos, T. Kociumaka, M. Kubica, A. Langiu, J. Radoszewski*, W. Rytter, B. Szreder, T. Waleń

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

6 Citations (Scopus)

Abstract

For a partial word w the longest common compatible prefix of two positions i, j, denoted lccp(i,j), is the largest k such that w[i,i+k-1] and w[j,j+k-1] are compatible. The LCCP problem is to preprocess a partial word in such a way that any query lccp(i,j) about this word can be answered in O(1) time. We present a simple solution to this problem that works for any linearly-sortable alphabet. Our preprocessing is in time O(nμ+n), where μ is the number of blocks of holes in w.

Original languageEnglish
Pages (from-to)49-53
Number of pages5
JournalJournal of Discrete Algorithms
Volume34
Early online date22 May 2015
DOIs
Publication statusPublished - 1 Sept 2015

Keywords

  • Dynamic programming
  • Longest common compatible prefix
  • Longest common prefix
  • Partial word

Fingerprint

Dive into the research topics of 'A note on the longest common compatible prefix problem for partial words'. Together they form a unique fingerprint.

Cite this