Abstract | ||
---|---|---|
Indeterminate strings are a subclass of non-standard words having non-deterministic nature. In a classic string every position contains exactly one symbol—we say it is a solid symbol—while in an indeterminate string a position may contain a set of symbols (possible at this position); such sets are called non-solid symbols. The most important subclass of indeterminate strings are partial words, where each non-solid symbol is the whole alphabet; in this case non-solid symbols are also called don't care symbols. We consider the problem of finding a shortest cover of an indeterminate string, i.e., finding a shortest solid string whose occurrences cover the whole indeterminate string. We show that this classical problem becomes NP-complete for indeterminate strings and even for partial words. The proof of this fact is one of the main results of this paper. Our other main results focus on design of algorithms efficient with respect to certain parameters of the input (so called FPT algorithms) for the shortest cover problem. For the indeterminate string covering problem we obtain an O(nk2+2kk3)-time algorithm, where k is the number of non-solid symbols, while for the partial word covering problem we obtain a running time of O(nk2+2O(klogk)). Additionally, we prove that, unless the Exponential Time Hypothesis is false, no 2o(k)nO(1)-time solution exists for either problem, which shows that our algorithm for partial words is close to optimal. We also present an algorithm for both problems parameterized both by k and the alphabet size with a simple implementation. |
Year | DOI | Venue |
---|---|---|
2014 | 10.1016/j.tcs.2017.05.026 | Theoretical Computer Science |
Keywords | DocType | Volume |
Cover of a word,Partial word,String with don't cares,Indeterminate string,Fixed-parameter tractability | Journal | 698 |
ISSN | Citations | PageRank |
0304-3975 | 4 | 0.43 |
References | Authors | |
24 | 6 |
Name | Order | Citations | PageRank |
---|---|---|---|
Maxime Crochemore | 1 | 2655 | 281.75 |
Costas S. Iliopoulos | 2 | 1534 | 167.43 |
Tomasz Kociumaka | 3 | 217 | 38.57 |
Jakub Radoszewski | 4 | 624 | 50.36 |
Wojciech Rytter | 5 | 2290 | 181.52 |
Tomasz Waleń | 6 | 706 | 39.62 |