English

Sampling Markov Models under Constraints: Complexity Results for Binary Equalities and Grammar Membership

Computational Complexity 2017-11-29 v1

Abstract

We aim at enforcing hard constraints to impose a global structure on sequences generated from Markov models. In this report, we study the complexity of sampling Markov sequences under two classes of constraints: Binary Equalities and Grammar Membership Constraints. First, we give a sketch of proof of #P-completeness for binary equalities and identify three sub-cases where sampling is polynomial. We then give a proof of #P-completeness for grammar membership, and identify two cases where sampling is tractable. The first polynomial sub-case where sampling is tractable is when the grammar is proven to be unambiguous. Our main contribution is to identify a new, broader class of grammars for which sampling is tractable. We provide algorithm along with time and space complexity for all the polynomial cases we have identified.

Keywords

Cite

@article{arxiv.1711.10436,
  title  = {Sampling Markov Models under Constraints: Complexity Results for Binary Equalities and Grammar Membership},
  author = {Stephane Rivaud and François Pachet},
  journal= {arXiv preprint arXiv:1711.10436},
  year   = {2017}
}

Comments

13 pages

R2 v1 2026-06-22T22:59:45.143Z