- Jul 15, 2001
- 6,899
- 63
- 91
Working on a project which requires me to simulate two deterministic automata and then find the union of them both.
I have a somewhat working code just to create the dfa and then check the input to see if the input is valid. However it doesnt seem to be working as it is supposed to. Can someone take a look at it and tell me what I am doing wrong?
Also how can I put this in a function so that I can call on it in the main to create 2 dfas? something like Dfa x = new dfa(). Is it possible to do that? Thanks.
I have a somewhat working code just to create the dfa and then check the input to see if the input is valid. However it doesnt seem to be working as it is supposed to. Can someone take a look at it and tell me what I am doing wrong?
Also how can I put this in a function so that I can call on it in the main to create 2 dfas? something like Dfa x = new dfa(). Is it possible to do that? Thanks.