need code for NFA to DFA

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Aug 2005
Posts: 80
Reputation: Daishi is an unknown quantity at this point 
Solved Threads: 2
Daishi Daishi is offline Offline
Junior Poster in Training

Re: need code for NFA to DFA

 
0
  #11
Aug 17th, 2005
Woah woah woah. What's so illegal with 'i=i++'? Wouldn't it just try to increment i, and then set i equal to the original value of i, making the ++ do effectively nothing? That's what it does when I try it, but I don't have a straight C compiler handy..

-Fredric
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,684
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1505
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: need code for NFA to DFA

 
0
  #12
Aug 17th, 2005
Originally Posted by Daishi
Woah woah woah. What's so illegal with 'i=i++'? Wouldn't it just try to increment i, and then set i equal to the original value of i, making the ++ do effectively nothing? That's what it does when I try it, but I don't have a straight C compiler handy..

-Fredric
wrong. it is undefined behavior. some compilers the final version is the original version but on other compilers it final value is the incremented value. VC++ 6.0 is incremented value, but Dev-C++ is the original value. So, although the statement compiles (no illegal syntax error) it produces behavior that has not been defined by c or c++ standrds.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,684
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1505
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: need code for NFA to DFA

 
0
  #13
Aug 17th, 2005
Originally Posted by Narue
>some of them work as teachers! LMAO
I have no respect for programming teachers in general. There are exceptions, of course, but for the most part I wouldn't trust a programming "professor" with any language more dangerous than pseudocode

and just who do you suppose actually wrote the language(s)? Those guys have Ph.D. and taught college courses for many years. So you can't judge all teachers on the bases of one idot :lol:
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 80
Reputation: Daishi is an unknown quantity at this point 
Solved Threads: 2
Daishi Daishi is offline Offline
Junior Poster in Training

Re: need code for NFA to DFA

 
0
  #14
Aug 17th, 2005
Heh, didn't realize that. :p Can you think of any other weird things like that in C?

-Fredric
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,684
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1505
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: need code for NFA to DFA

 
0
  #15
Aug 17th, 2005
Originally Posted by Daishi
Heh, didn't realize that. :p Can you think of any other weird things like that in C?

-Fredric
yes -- one very common problem. fflush() is only defined for output streams, not input streams. Some compilers (like VC++ 6.0) support them, but compilers are not required to.
fflush(stdin);
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,868
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 755
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: need code for NFA to DFA

 
0
  #16
Aug 17th, 2005
>So you can't judge all teachers on the bases of one idot
I do recall saying that there were exceptions, but in my experience, the majority of teachers only teach because they're not good enough to actually write code for a living.

>Can you think of any other weird things like that in C?
I can think of countless weird things like that in C.
New members chased away this month: 5
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,684
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1505
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: need code for NFA to DFA

 
0
  #17
Aug 17th, 2005
Originally Posted by Narue
but in my experience, the majority of teachers only teach because they're not good enough to actually write code for a living.

You must be hanging around the wrong crowd :lol: Many people with Ph.D.s (in computer science) teach because they are over-qualified for jobs. Software houses don't need (or want) Ph.D.s to write code, and masters degree is streatching it. Most teachers that do not have Ph.D. have masters degrees and only teach part time -- they hold down full-time programming positions in industry (I work with someone like that).
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 1
Reputation: muhammedzakeer is an unknown quantity at this point 
Solved Threads: 0
muhammedzakeer muhammedzakeer is offline Offline
Newbie Poster

Re: need code for NFA to DFA

 
0
  #18
Sep 26th, 2006
please send the code immediateley
Originally Posted by ankara84 View Post
hello
I need C code to build a finite automata and NON deterministic automata translate to equal DFA. This is for my project please help!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,275
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: need code for NFA to DFA

 
0
  #19
Sep 27th, 2006
Originally Posted by muhammedzakeer View Post
please send the code immediateley
No code but a starter perhaps?

http://www.cs.odu.edu/~toida/nerzic/...eb_course.html

Good luck!
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 1
Reputation: anapanevska is an unknown quantity at this point 
Solved Threads: 0
anapanevska anapanevska is offline Offline
Newbie Poster

Re: need code for NFA to DFA

 
0
  #20
Mar 1st, 2007
Originally Posted by ankara84 View Post
hello
I need C code to build a finite automata and NON deterministic automata translate to equal DFA. This is for my project please help!
I also need a code for translation a nfa to dfa. My email is << email snipped>> thanks
Last edited by ~s.o.s~; Mar 1st, 2007 at 2:11 pm. Reason: Email ID snipped according to site policy.
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Computer Science Forum


Views: 18350 | Replies: 31
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC