![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#3
|
|||
|
|||
|
Re: how to convert NFA to DFA in c
NFA - Non Deterministic Finite Automata
DFA - Deterministic Finite Automata Write down the Steps that U know for the conversion I'll try creating the source There are i guess 3 different ways for the conversion |
|
#4
|
|||
|
|||
|
Re: how to convert NFA to DFA in c
Here you go. I don't know anything about NFAs and DFAs or how to convert between them, but if you know then just fill in the details and this will do the trick:
Code:
struct tagNFA
{
/* you need to fill this in */
};
struct tagDFA
{
/* you need to fill this in */
};
void initNFA(struct tagNFA *obj)
{
/* you need to fill this in */
}
void convertNFA2DFA(struct tagNFA *theNFA,struct tagDFA *theDFA)
{
/* you need to fill this in */
}
int main()
{
struct tagNFA myNFA;
struct tagDFA myDFA;
initNFA(&myNFA);
convertNFA2DFA(&myNFA, &myDFA);
}
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
|
||||||||||||||||||||