CFanatic

Go Back   CFanatic > Programming > C Programming

how to convert NFA to DFA in c topic posted under C Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2006, 11:44 PM
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ashokkumarrsp is on a distinguished road
| More
how to convert NFA to DFA in c

kindly give me the source code for NFA to DFA conversion.
Reply With Quote
  #2  
Old 11-29-2006, 04:39 PM
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Bill Pursell is on a distinguished road
| More
Re: how to convert NFA to DFA in c

kindly give me the source code for NFA to DFA conversion.

Kindly describe what an NFA and a DFA are.
Reply With Quote
  #3  
Old 09-17-2007, 11:55 AM
Junior Member
 
Join Date: Sep 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
bluedragon is on a distinguished road
| More
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
Reply With Quote
  #4  
Old 07-31-2008, 04:51 PM
Senior Member
 
Join Date: Jul 2008
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
xpi0t0s is on a distinguished road
| More
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);
}
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert HWND to LPCTSTR WIN32 micheal jordan Win32 Programming 10 10-05-2008 06:48 AM
convert dialog application rachel196 MFC Programming 1 06-26-2008 10:31 AM



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.