Let P be a regular language and Q be a context-free language such that Q⊆P. (For example, let P be the language represented by the regular expression P∗q∗ and Q be {pnqn∣nϵN} Then which of the following is ALWAYS regular ?
Open in App
Solution
∑∗−P=Pc
If P is regular. then Pc is also regular, since regular language is closed under complementation.