
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Problem set 2 for the cs 4510: automata and complexity course. The problems cover topics such as proving languages are not regular, all-paths-nfas, first halves of strings in regular languages, context-free grammars, and the pumping lemma.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

All problems are worth 10 points.
Prove that the following languages are not regular:
Consider a new kind of finite automaton called an All-Paths-NFA. An All-Paths-NFA M is a 5- tuple (Q, Σ, δ, q 0 , F ) that accepts x ∈ Σ∗^ if every possible computation of M on x ends in a state from F. Note, in contrast, that an ordinary NFA accepts a string if some computation ends in an accept state. Prove that All-Paths-NFAs recognize the class of regular languages.
If A is a language, let A− 12 be the set of all first halves of strings in A so that
A− 1 2
= {x | for some y, |x| = |y|, and xy ∈ A}
Show that if A is regular, so is A− 1 2
Give context-free grammars that generate the following languages. Also give informal description of the PDAs accepting these languages. The alphabet is { 0 , 1 }.
For a language A, let SUFFIX(A) denote the set of all suffixes of strings in A, i.e.
SUFFIX(A) = {v | uv ∈ A for some string u}
Show that if A is a context-free language, so is SUFFIX(A).
Use the pumping lemma to show that the following languages are not context free: