Question: {w {a,b} | 2 #a(w) > 3 #b(w)}, where #a(w) denotes the number of as in w. (b) {w E {a, b)' | 2 .

  1. {w {a,b} | 2 #a(w) > 3 #b(w)}, where #a(w) denotes the number of as in w. {w {a,b} | 2 #a(w) > 3 #b(w)}, where #a(w) denotes

(b) {w E {a, b)' | 2 . #a(w) > 3 . #b(w), where "#a(w)" denotes the number of a's in w. Suggestion: Use the PDA's stack to represent an integer counter, as follows: +5 -3 0 Conceptually think of your PDA as an NFA with a counter. Keep track of 2 . #aw) 3-#b(w). Carefully consider how to update the value in the counter (especially taking into account all cases of positive, zero, negative for the starting value of the counter, and the possibility of the counter's value changing signs)

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!