Welcome! Log In Create A New Profile

Advanced

General DPDA Question

Posted by RiaanR 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
avatar General DPDA Question
May 03, 2007 12:00PM
Should a DPDA always have a REJECT state? I see a lot of the DPDA examples that I get online don't have REJECT states. If a word is not accepted it's rejected, right?!? (I know its pointless having multiple REJECT states)
avatar Re: General DPDA Question
May 04, 2007 08:04PM
i just got my solutions for ass 1, and it had no reject states, along with some kind of explanation. hmm. i was hoping for something like "if it doesn't go to accept then we can assume it goes to a common reject", but nope.
avatar Re: General DPDA Question
May 07, 2007 10:46AM
RiaanR Wrote:
-------------------------------------------------------
> Should a DPDA always have a REJECT state? I see a
> lot of the DPDA examples that I get online don't
> have REJECT states. If a word is not accepted it's
> rejected, right?!? (I know its pointless having
> multiple REJECT states)


The number of reject states does not influence
the determinism (or lack thereof) of a PDA. I'm not
too sure how this (mis)information gets propagated(sp?)
in each thread as the textbook does make it clear what
the definitions are, but maybe it's time to address it.

The difference between a deterministic PDA and
and a non-deterministic PDA is this:

In a DPDA, a word that is accepted must always be
accepted no matter how many different paths exist
towards acceptance. The same applies for a word
that is rejected.

In a non-D PDA, a word may be accepted along one
path while *also* being rejected along a different path.

The above implies that a PDA that loops infinitely or
crashes on a certain word can be (but is not necessarily)
deterministic; i.e. the absence of a reject state has no
effect on the determinism of a PDA.

My standard disclaimer applies:

   "I'd be very happy if someone would care to cite the
    text in proving the above wrong; I've been using it now
    for a while and would appreciate any corrections."

--
Learn something new - updated weekly
Sorry, only registered users may post in this forum.

Click here to login