Push Down Automata for the language L = { a^i b^j c^k | i, j, k >= 0 and j = i + 2k }
I drew PDA diagram for this language but it still does not work. Can some please help me? My PDA accepts ‘bc’ which it should not. I have no idea to control the b and c of the language. My scala code for the pda is below.