English

Reformulating Global Grammar Constraints

Artificial Intelligence 2009-03-04 v1

Abstract

An attractive mechanism to specify global constraints in rostering and other domains is via formal languages. For instance, the Regular and Grammar constraints specify constraints in terms of the languages accepted by an automaton and a context-free grammar respectively. Taking advantage of the fixed length of the constraint, we give an algorithm to transform a context-free grammar into an automaton. We then study the use of minimization techniques to reduce the size of such automata and speed up propagation. We show that minimizing such automata after they have been unfolded and domains initially reduced can give automata that are more compact than minimizing before unfolding and reducing. Experimental results show that such transformations can improve the size of rostering problems that we can 'model and run'.

Keywords

Cite

@article{arxiv.0903.0475,
  title  = {Reformulating Global Grammar Constraints},
  author = {George Katsirelos and Nina Narodytska and Toby Walsh},
  journal= {arXiv preprint arXiv:0903.0475},
  year   = {2009}
}

Comments

15 pages, 4 figures

R2 v1 2026-06-21T12:17:42.170Z