The hardness of counting full words compatible with partial words

  • Authors:
  • Florin Manea;Ctlin Tiseanu

  • Affiliations:
  • Christian-Albrechts-Universität zu Kiel, Institut für Informatik, D-24098 Kiel, Germany and University of Bucharest, Faculty of Mathematics and Computer Science, RO-010014 Bucharest, Rom ...;University of Maryland at College Park, Computer Science Department, A.V. Williams Bldg., College Park, MD 20742, USA

  • Venue:
  • Journal of Computer and System Sciences
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present several problems regarding counting full words compatible with a set of partial words or with the factors of a partial word, and show that they are #P-complete. Some of these counting problems have NP-complete decision counterparts to which a hard variant of CNF-SAT is reduced parsimoniously; the rest are #P-complete problems that cannot be canonically associated to NP-complete decision problems. For these problems we assume that the set of symbols compatible with the wildcards equals the alphabet of the input partial word. When both a partial word and the cardinality of the alphabet compatible with the wildcard are given as input, we show that the central problem of counting the full words compatible with factors of the given partial word is also #P-complete. Finally, we propose a nontrivial exponential-time algorithm, working in polynomial space, useful to derive upper bounds for the time needed to solve the discussed problems.