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ń
August, 2015
Abstract
For a partial word w the longest common compatible prefix of two positions , , denoted , is the largest such that and are compatible. The LCCP problem is to preprocess a partial word in such a way that any query about this word can be answered in time. We present a simple solution to this problem that works for any linearly-sortable alphabet. Our preprocessing is in time , where is the number of blocks of holes in w.
Publication
Journal of Discrete Algorithms 34:49-53