World's most popular travel blog for travel bloggers.

[Solved]: Are permutations of context-free languages context-free?

, , No Comments
Problem Detail: 

Given a context-free language $L$, define the language $p(L)$ as containing all permutations of strings in $L$ (i.e. all strings in $L$ such that the order of symbols is not important). Is $p(L)$ context-free?

I found two papers dealing with similar, but not identical, questions:

Asked By : Erel Segal-Halevi

Answered By : Hendrik Jan

Start with simple context-free (or even regular) languages, and see what happens. For instance determine $p(L)$ for $L = (ab)^*$ and $L=(abc)^*$.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/11329

0 comments:

Post a Comment

Let us know your responses and feedback