Question: 2. Write a PDA for the language L2={w{2,1}w has twice as many 1 's as 2's }. In other words, if we treat 1 as

 2. Write a PDA for the language L2={w{2,1}w has twice as

2. Write a PDA for the language L2={w{2,1}w has twice as many 1 's as 2's }. In other words, if we treat 1 as 1, the total of all the symbols should be zero. For example, 121L2, but 2121/L2. Please add a brief explanation of why your PDA works

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!