I need to create a Pushdown Automaton with JFLAP that recognizes the following language:
What steps need to be taken to do it? And how does it work?
I need to create a Pushdown Automaton with JFLAP that recognizes the following language:
What steps need to be taken to do it? And how does it work?
Copyright © 2021 Jogjafile Inc.

I think that this question is better suited for cs.stackexchange.com but I'll add my solution anyway.
Forming an example
It's actually easier than it looks, let's consider for the sake of an example that we have the following values for our occurrences:
This should allow us to form the following string:
Forming logical understanding
From this we need to determine which symbols we need to keep a track of.
ntimes and thatn,m ≥ 1so we need to keep a track ofnhere and we require it to occur at least once.q = p+mandmalso occurs at least so we need to keep a track of the occurrences ofm.q = p+mwe also need to keep an occurrence ofpbut note thatpcan also not occur because it is stated thatp ≥ 0.Forming a formal definition
We let our PDA P to be the following PDA:
P = (Q, Σ, Γ, τ, q0, Z, q6)
Where:
#Forming a pushdown automaton
So from this we can form the following automaton (in JFLAP):
So here, we are just keeping a track the symbols as mentioned above but an important thing to note here is
q3where the transition forcis a 0 or more transition.We also use the symbol
#as the stack symbol.Simulation
If we simulate this PDA with the input as specified above (
aabbbcaaaabb), we get the following results: