Chapter 0: Q20P (page 1)
Let
Show that ifis context free andis regular, thenis context free
Short Answer
Yes, if is context free and is regular, thenis context free is proved.
Chapter 0: Q20P (page 1)
Let
Show that ifis context free andis regular, thenis context free
Yes, if is context free and is regular, thenis context free is proved.
All the tools & learning materials you need for study success - in one app.
Get started for freeShow that
Myhill–Nerode theorem. Refer to Problem . Let L be a language and let X be a set of strings. Say that X is pairwise distinguishable by L if every two distinct strings in X are distinguishable by L. Define the index of L to be the maximum number of elements in any set that is pair wise distinguishable by L . The index of L may be finite or infinite.
a. Show that if L is recognized by a DFA with k states, L has index at most k.
b. Show that if the index of L is a finite number K , it is recognized by a DFA with k states.
c. Conclude that L is regular iff it has finite index. Moreover, its index is the size of the smallest DFA recognizing it.
If we disallow in CFGs, we can simplify the -test. In the simplified test, we only need to check that each of ’s accept states has a single rule. Prove that a CFG without passes the simplified -testiff it is a DCFG.
Show that the Post Correspondence Problem is undecidable over the binary alphabet..
Use the results of Exercise to give another proof that every regular language is context- free, by showing how to convert a regular expression directly to an equivalent context-free grammar.
What do you think about this solution?
We value your feedback to improve our textbook solutions.