Computer Science EngineeringHard
Context-free languages are NOT closed under which operation?
- A. Intersection
- B. Union
- C. Concatenation
- D. Kleene star
Correct answer: A. Intersection
For example {a^n b^n c^m} and {a^m b^n c^n} are context-free but their intersection {a^n b^n c^n} is not.
Practise more Theory of Computation, Compilers & Digital Logic (ISRO CS) questionsTheory of Computation, Compilers & Digital Logic (ISRO CS): notes and key points
More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions
- Which of the following languages requires a nondeterministic pushdown automaton (cannot be accepted by a deterministic PDA)?
- If both a language L and its complement are recursively enumerable, then L is
- Left recursion must be eliminated from a grammar before it can be used with
- Which parser accepts the largest class of grammars among the following?
- For a given grammar, an LALR(1) parser has the same number of states as which other parser?
- How many nodes does the DAG for the expression a + a(b-c) + (b-c)d contain (common subexpressions shared)?