Computer Science EngineeringHardISRO SC
The intersection of two deterministic context-free languages is
- A. always regular
- B. always deterministic context-free
- C. not necessarily context-free
- D. always context-free
Correct answer: C. not necessarily context-free
For example {a^n b^n c^m} intersect {a^m b^n c^n} = {a^n b^n c^n}, which is not context-free.
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 computational model recognizes exactly the class of regular languages?
- Which compiler phase reads the character stream and groups it into tokens?
- How many states are in the minimal DFA over {a, b} that accepts exactly the strings ending in 'ab'?
- The regular expression (a+b) over the alphabet {a, b} denotes
- Context-free grammars correspond to which type in the Chomsky hierarchy?
- Which of the following languages over {a, b} is NOT regular?