As we know that, PDA=Finite Automata + one Stack. Assume a modified PDA M1 in which, in place of stack if we use counter (where the counter is able to count the number of occurrences of terminals in input string), i.e., PDA M1 = Finite Automata + one counter.
Consider the given below languages:
L1={a^nb^n |n>0}
L2={wwr| w ϵ {a,b}*}
L3= {w | na(w) = nb(w)}
Select the correct option.
I think the answer is L1 and L3, But the answer given is only L3.
in L1 we can maintain counter it will increment for occurrences of a, and when b starts it will decrement and after seeing first "b" if any "a" comes then machine will goto dead state.