| | |
how do i solve?good-bad NFA!!
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Jan 2008
Posts: 4
Reputation:
Solved Threads: 0
this is a problem iv nt been able to solve..tried still not getting an answer
Imagine that an NFA is divided into good and bad states represented by G and B resp..also G and B are mutually exclusive..now a string is accpted by the new NFA only if all computations on w(string) end either in the neutral state or the good state but not in the bad state..we have to proove that the language accpted by this are regular languages.
plz help solving me this..help appreciated
Imagine that an NFA is divided into good and bad states represented by G and B resp..also G and B are mutually exclusive..now a string is accpted by the new NFA only if all computations on w(string) end either in the neutral state or the good state but not in the bad state..we have to proove that the language accpted by this are regular languages.
plz help solving me this..help appreciated
I'm not sure I understand your homework assignment.
You have three halt states: G (good), neutral, and B (bad).
However, your NFA only accepts for G and neutral. Hence, you really only have two halt states: G (good) and neutral.
This is all the information you have given me. With what you know (that I might not) about your NFA, can you prove that it is a regular language?
Hint: what is the definition/properties of a regular language, and what is the definition/properties of an NFA? (Or DFA, if you have already seen proof that a DFA and an NFA are equivalent).
You have three halt states: G (good), neutral, and B (bad).
However, your NFA only accepts for G and neutral. Hence, you really only have two halt states: G (good) and neutral.
This is all the information you have given me. With what you know (that I might not) about your NFA, can you prove that it is a regular language?
Hint: what is the definition/properties of a regular language, and what is the definition/properties of an NFA? (Or DFA, if you have already seen proof that a DFA and an NFA are equivalent).
•
•
Join Date: Jan 2008
Posts: 4
Reputation:
Solved Threads: 0
I will restate the whole problem..the one that was given to me..
Suppose we alter the defination of an NFA so that we now identify 2 types of states in its state set Q:the good states G which is a subset of Q and the Bad states B which is a subset of Q,where G and B are mutually exclusive.We also alter the defination of acceptace:the automaton now accepts input w if,considering all possible computations on w,some computation ends in G and no computation ends in B.Call this new type of NFA a GOOD-BAD-NFA.
Proove that th class of languages recognized by GOOD-BAD-NFAs is the class of regular languages.
Suppose we alter the defination of an NFA so that we now identify 2 types of states in its state set Q:the good states G which is a subset of Q and the Bad states B which is a subset of Q,where G and B are mutually exclusive.We also alter the defination of acceptace:the automaton now accepts input w if,considering all possible computations on w,some computation ends in G and no computation ends in B.Call this new type of NFA a GOOD-BAD-NFA.
Proove that th class of languages recognized by GOOD-BAD-NFAs is the class of regular languages.
•
•
Join Date: Jan 2008
Posts: 4
Reputation:
Solved Threads: 0
see the thing is that it is mentioned that all possible computations on the string should end in good states only..If for example a state on application of say 0 goes on a good state as well as a bad state..den that string is not accpeted..this is mentioned in the question written above..So what wud happn if say the language for the original NFA os say 0*1..and all the 1 point to atleast 1 bad state..nd ya we could convert the NFA to the DFA but the DFA would fail in the above mentioned scenario..!!so what do v do??
I could go to Ireland and speak to someone in Spanish, but I would get deported. (Just because someone who speaks Spanish can go and speak it in Ireland does not mean that he will be accepted by the Irish people.)
We are really at our limits for explaining things more clearly for you without just giving the answer away (I would argue that we already did...)
Think about it a little...
[EDIT] By the way, I'm not being rude. Everything in this post applies directly to your problem.
We are really at our limits for explaining things more clearly for you without just giving the answer away (I would argue that we already did...)
Think about it a little...
[EDIT] By the way, I'm not being rude. Everything in this post applies directly to your problem.
Last edited by Duoas; Jan 9th, 2008 at 6:39 pm.
![]() |
Other Threads in the Computer Science Forum
- Previous Thread: need help
- Next Thread: How do I set unix shell's display dynamically
| Thread Tools | Search this Thread |
ai algorithm algorithms amazon assignment assignments automata battery bigbrother binary bizarre bletchleypark blogging bomb business cern codebreaker compiler computer computers computerscience computertrackingsoftware connect conversion csc data dataanalysis dataintepretation development dfa dissertation dissertationtopic ebook employment energy extensions floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod jobs laser laws linkbait lsmeans mainframes marketing mining mobileapplication msaccess nano netbeans networking news os p2p piracy piratebay principles programming rasterizer research sam-being-cute sas science security sex simulation software spying sql stephenfry study supercomputer supercomputing sweden technology textfield turing turingtest virus warehouse ww2






