Computer Science EngineeringHardISRO SC
How many of the following operations are guaranteed to produce a context-free language when applied to context-free languages L1, L2 and a regular language R: (i) L1 intersect R, (ii) L1 intersect L2, (iii) complement of L1, (iv) L1 minus R, (v) L1 union L2, (vi) L1 concatenated with L2?
- A. 4
- B. 2
- C. 3
- D. 5
Correct answer: A. 4
(i), (iv) (= L1 intersect complement of R), (v) and (vi) preserve context-freeness; (ii) and (iii) do 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
- A shift/reduce conflict in a Yacc-style generator that is not resolved by precedence declarations is, by default, resolved by
- The complement of a context-sensitive language is
- A deterministic PDA with acceptance by empty stack (not final state) can accept only languages that are
- Very busy (anticipable) expressions analysis is of the type
- The intersection of two deterministic context-free languages is
- Which computational model recognizes exactly the class of regular languages?