1.

The minimum number of productions required to produce a language consisting of palindrome strings over∑={a,b} is(a) 3(b) 7(c) 5(d) 6The question was posed to me in an interview for job.This key question is from Context Free Grammar-Derivations and Definitions in chapter Context Free Grammars and Languages of Automata Theory

Answer»

The correct option is (C) 5

For explanation I would say: The GRAMMAR which produces a PALINDROME set can be written as:

S-> aSa | BSB | E | a | b

L={e, a, b, aba, abbbaabbba…..}



Discussion

No Comment Found

Related InterviewSolutions