CreuLINUX
asked on
DFA In C++
I need an implementation of the DFA
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
>> i need in c++ =/
Are you just looking to learn how a state machine works or so you actually need some kind of library. It would really help if you provided is with some context.
Are you just looking to learn how a state machine works or so you actually need some kind of library. It would really help if you provided is with some context.
ASKER
just need the source code
>> just need the source code
Without some background info I suspect you won't get much in the way of assistance. Asking for source code for "an implementation of the DFA" is pretty meaningless since there are many different types of DFA. DFA is just an engineering concept (a type of state machine, there are others) that can be used in many different ways and scenarios.
If you could just explain a little more about what you need it for it would allow us to point you in the right direction. If you don't want to that is also fine but you are likely to find the assistance you get is a little vague.
I am just trying to help you help us find you the best solution. If you have no wish to provide more information there is no need for you to reply to me :)
Without some background info I suspect you won't get much in the way of assistance. Asking for source code for "an implementation of the DFA" is pretty meaningless since there are many different types of DFA. DFA is just an engineering concept (a type of state machine, there are others) that can be used in many different ways and scenarios.
If you could just explain a little more about what you need it for it would allow us to point you in the right direction. If you don't want to that is also fine but you are likely to find the assistance you get is a little vague.
I am just trying to help you help us find you the best solution. If you have no wish to provide more information there is no need for you to reply to me :)
ASKER
I need a "generic", I tell the initial state, final state, the
transitions and an input string.
Then he shows me the transitions and whether it was accepted or not ...
transitions and an input string.
Then he shows me the transitions and whether it was accepted or not ...
ASKER