![]() |
|
#1
|
|||
|
|||
C program to convert NFA to DFAI'm so pleased to write you and I was wondering if you would mind giving me a C Language program that converts NFA to DFA, I have written the algorithm of conversion from NFA to DFA but I couldn't translate it into C language program.
I'm looking forward to getting your answer. |
|
#2
|
||||
|
||||
|
Hi ayoub.
This thread you started is suspiciously like this thread. I would like to keep all replies and responses to the same topic in the same thread if possible. On to your problem. You say that you have written an algorithm to do this? Is there anyway that you can post it? I am still unclear of what you are asking for, but if you could post an algorithm I will take a look at it. Thanks. |
|
#3
|
|||
|
|||
C program that convert NFA to DFADear sir,
thank you very much for replying to my message,my problem is that i have written an algorihtm to convert non deterministic finite automata to deterministic finite automata but i couldn't translate it to C program and this is the algorithm i have written qx is a state in the NFA and q0 is its start state QX is a state in the DFA and Q0 is its start state The eqsilon-closure of a DFA state consists of all the states in the NFA that we can get to with epsilon moves from the states in the DFA state. Code:
i was wondering if you would mind giving a C program that convert NFA to DFA. i'm looking forward to getting your answer |
|
#4
|
|||
|
|||
Re: C program to convert NFA to DFAPlease send me program to convert ndfa to dfa.
|
|
#5
|
|||
|
|||
Re: C program that convert NFA to DFAQuote:
Here's how I look at a new problem for which I want to write a program: input==> processing ==> output What is the input to your program? A representation of some kind of state machine (An NFA, right?) What is the output? A representation of some kind of state machine (A DFA, right?) The processing is the algorithm shown in your pseudo-code: convert an NFA to a DFA. So, to make a program out of words, one thing you have to do is to define how you are going to represent your data objects. Then define and implement the functions that manipulate them in order to perform the defined task. I would begin by answering the following questions: Important Question number 1: How will I represent the finite automata? If this is C++, maybe I will define a class with various member functions and, maybe, overloaded operators If this is C, then I will have some kind of struct probably a linked list of the structs, and various functions that operate on the structs and/or members of the structs. Are there any differences (in detail or structure) between the types of state machines the program is dealing with? Important Question number 2: What functions are required? Input? Output? What else is needed to perform the processing of the algorithm? Important Question number 3: How will I test my program? Do I have any examples of NFAs that I have already seen the resulting DFAs? Are there any special (problem) machines that might be particularly troublesome. I will expand a little on number 3, since this is not always among the first things that people think of as they are learning. In my opinion: It is very important that you have a test plan before you start generating code. You will have to do it sooner or later. I vote for sooner. As you run through your test cases (manually, or by looking at examples in books), you might form a clearer picture of how the program processing will proceed, and you might get a better idea of how you want to represent the data objects. Regards, Dave |
|
#6
|
|||
|
|||
Re: C program to convert NFA to DFAQuote:
|
|
#7
|
|||
|
|||
C Program Convert Nfa To Dfa[The next 4 posts belong to a different thread I merged into this one - LuciWiz]
MY E-MAIL LETH_EBID[at]YAHOO[dot]COM PLEASE PLEASE SEND TO ME THE PROGRAM NOW NOW Last edited by admin : 22-Apr-2007 at 10:15.
Reason: Edited email address for anti-spam; !!!Merged thread follows!!!!
|
|
#8
|
||||
|
||||
Re: C Program Convert Nfa To DfaCPP / C++ / C Code:
__________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#9
|
||||
|
||||
Re: C Program Convert Nfa To DfaQuote:
BRILLIANT! __________________
The best damn Sports Blog period. |
|
#10
|
|||
|
|||
Re: C Program Convert Nfa To DfaQuote:
You didn't need to double post. You didn't need to put your email address this is a forum for sharing knowledge ans asking for help. If somebody was to email you the answer nobody else would benefit so don't expect an email anytime soon. Secondly, if you don't have any code at all, at least post the algorithm you have. The somebody can help you implement it. But asking somebody to write the whole code for you is rude, it means somebody else would have to take the time to do it because you are to lazy to learn how. There is a difference between getting some help and having someone do the work for you. And if that is all you want then you had better try this website http://www.rentacoder.com/ But if it is help you want, I am sure you are at the right place. |
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Will pay money for someone to write a semi complex program | bstan | Computer Programming Advertisements & Offers | 0 | 23-Feb-2004 04:17 |
| compiling a program within another (C++) | Siphiro | C++ Forum | 5 | 06-Feb-2004 16:35 |
| error during program | rjd72285 | C++ Forum | 0 | 11-Nov-2003 19:49 |
| one program access another? | dgoulston | C++ Forum | 1 | 07-Oct-2003 12:26 |
| convert long to pointer to char | realpopeye | C++ Forum | 2 | 26-Sep-2003 11:22 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The