Parameterized longest previous factor
详细信息查看全文 | 推荐本文 |
摘要
Given a string , the longest previous factor (LPF) problem is to determine the maximum length of a previously occurring factor for each suffix occurring in . The LPF problem is defined for traditional strings exclusively from the constant alphabet . A parameterized string (p-string) is a string composed of symbols from a constant alphabet and a parameter alphabet . We formulate the LPF problem in terms of p-strings by defining the parameterized longest previous factor (pLPF) problem. Subsequently, we present an expected linear time solution to construct the parameterized longest previous factor () array. Given our pLPF solution, we show how to construct the (parameterized longest common prefix) array with the same general algorithm. We exploit the properties of the data structure to also construct the standard (longest previous factor) and (longest common prefix) arrays all in linear time. Further, we provide insight into the practicality of our construction algorithms.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700