Boundary sets of regular and context-free languages

We investigate the descriptional and computational complexity of boundary sets of regular and context-free languages. For a letter a, the right (left, respectively) a-boundary set of a language L consists of the words in L whose a-predecessor or a-successor w.r.t. the prefix (suffix, respectively) relation is not in L. For regular languages described by deterministic finite automata (DFAs) we give tight bounds on the number of states for accepting boundary sets. Moreover, the question whether the boundary sets of a regular language is finite is shown to be NL -complete for DFAs, while it turns out to be PSPACE -complete for nondeterministic devices. Boundary sets for context-free languages are not necessarily context free anymore. Here we find a subtle difference of right and left a-boundary sets. While right a-boundary sets of deterministic context-free languages stay deterministic context free, we give an example of a deterministic context-free language whose a-boundary set is already non-context free. In fact, the finiteness problem for a-boundary sets of context-free languages becomes undecidable.

[1]  Dexter Kozen,et al.  Lower bounds for natural proof systems , 1977, 18th Annual Symposium on Foundations of Computer Science (sfcs 1977).

[2]  Sheng Yu,et al.  On the State Complexity of Combined Operations , 2006, CIAA.

[3]  Neil D. Jones,et al.  Space-Bounded Reducibility among Combinatorial Problems , 1975, J. Comput. Syst. Sci..

[4]  Michael A. Harrison,et al.  Introduction to formal language theory , 1978 .

[5]  Viliam Geffert,et al.  Hyper-minimizing minimized deterministic finite state automata , 2009, RAIRO Theor. Informatics Appl..

[6]  Arto Salomaa,et al.  Formal languages , 1973, Computer science classics.

[7]  Artur Jez,et al.  On Minimising Automata with Errors , 2011, MFCS.

[8]  Markus Holzer,et al.  From Equivalence to Almost-Equivalence, and Beyond - Minimizing Automata with Errors - (Extended Abstract) , 2012, Developments in Language Theory.

[9]  Neil Immerman Nondeterministic Space is Closed Under Complementation , 1988, SIAM J. Comput..

[10]  Martin Kutrib,et al.  Descriptional Complexity - An Introductory Survey , 2010, Scientific Applications of Language Methods.

[11]  Tao Jiang,et al.  Minimal NFA Problems are Hard , 1991, SIAM J. Comput..