The language is: {0n1m|n=2m}
I need to give a CFG based on this language, and I can't figure it out. It's been an hour and I am extremely frustrated, anyone got any hints/lead-way?
The language is: {0n1m|n=2m}
I need to give a CFG based on this language, and I can't figure it out. It's been an hour and I am extremely frustrated, anyone got any hints/lead-way?
Good question. Here is a start. Step 1: write down the start variable. Step 2: Find var that is written down and a rule that has that var as the left hand side. Replace the var with the right hand side of the rule. Step 3: repeat 2 until no more var remain.