0 0 votes Consider a grammar $G$ with productions $P$. Let $INIT(G)$ be the grammar with production $P'$ such that $P' = P \cup ( A\rightarrow B \mid \text{such that } A->BC \text{ belongs to } P ) \cup ( A\rightarrow \epsilon \mid \text{such that} A\rightarrow b \text{ belongs to} P )$ prove that: a) Prefix(G) is subset of INIT(G) b) INIT(G) is subset of Prefix(G) Theory of Computation iit-kanpur written-test gate-2017 interview mtech + – rahul sharma 5 1.0k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply Devshree Dubey commented Mar 19, 2018 reply Follow flag @rahul sharma 5,What is INIT(G) and Prefix(G) here? 0 0 replyShare rahul sharma 5 commented Mar 19, 2018 reply Follow flag INIT(G) is given in the question. Prefix(G) contains set of all prefixes of all strings in the grammar(this is what i learnt in TOC). I have copied this question from interview experience. 0 0 replyShare Devshree Dubey commented Mar 19, 2018 reply Follow flag Okay. I just happened to overlook what's mentioned in the first line about INIT(G). 0 0 replyShare Please log in or register to add a comment.