how do i solve?good-bad NFA!!

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

Join Date: Jan 2008
Posts: 4
Reputation: shomashoma is an unknown quantity at this point 
Solved Threads: 0
shomashoma shomashoma is offline Offline
Newbie Poster

how do i solve?good-bad NFA!!

 
0
  #1
Jan 7th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,952
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: how do i solve?good-bad NFA!!

 
0
  #2
Jan 7th, 2008
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).
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 4
Reputation: shomashoma is an unknown quantity at this point 
Solved Threads: 0
shomashoma shomashoma is offline Offline
Newbie Poster

Re: how do i solve?good-bad NFA!!

 
0
  #3
Jan 8th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,952
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: how do i solve?good-bad NFA!!

 
0
  #4
Jan 8th, 2008
OK, so there are no neutral states.

I'm afraid I can't give you much more help than I already have, since this homework is a test of definitions.

Hint: if the modified NFA cannot halt on B, then what difference does it make if B is part of the automaton?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 269
Reputation: sarehu is on a distinguished road 
Solved Threads: 22
sarehu's Avatar
sarehu sarehu is offline Offline
Posting Whiz in Training

Re: how do i solve?good-bad NFA!!

 
0
  #5
Jan 8th, 2008
shomashoma, remember that two sets S and T are equal if S is a subset of T and T is a subset of S. You know that the set of regular languages are those accepted by DFAs and NFAs. Hint hint.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 4
Reputation: shomashoma is an unknown quantity at this point 
Solved Threads: 0
shomashoma shomashoma is offline Offline
Newbie Poster

Re: how do i solve?good-bad NFA!!

 
0
  #6
Jan 9th, 2008
What if all the halting states that existed before the automata was modified are now the bad states..den how would any language be accepted???
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 4
Reputation: shomashoma is an unknown quantity at this point 
Solved Threads: 0
shomashoma shomashoma is offline Offline
Newbie Poster

Re: how do i solve?good-bad NFA!!

 
0
  #7
Jan 9th, 2008
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??
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 269
Reputation: sarehu is on a distinguished road 
Solved Threads: 22
sarehu's Avatar
sarehu sarehu is offline Offline
Posting Whiz in Training

Re: how do i solve?good-bad NFA!!

 
0
  #8
Jan 9th, 2008
There is no converting, just reasoning related to sets.
Last edited by sarehu; Jan 9th, 2008 at 1:56 pm.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,952
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: how do i solve?good-bad NFA!!

 
0
  #9
Jan 9th, 2008
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.
Last edited by Duoas; Jan 9th, 2008 at 6:39 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC