Welcome! Log In Create A New Profile

Advanced

Assignment 1 Question 7 on PDAs

Posted by iva 
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
iva
Assignment 1 Question 7 on PDAs
March 04, 2007 10:30PM
Te PDAs after page 302 leave out the REJECT states, can we do this too for assignment questions or must we include every possible REJECT state?
avatar Re: Assignment 1 Question 7 on PDAs
March 12, 2007 07:48AM
I put in all the reject states. (Just because they wanted a DPDA). Don’t know if it's right thou.
Re: Assignment 1 Question 7 on PDAs
March 14, 2007 01:46PM
It seems that only on a non-deterministic PDA is the input allowed to crash, but on a deterministic PDA it must be accepted or rejected by ending up in said state. So rather keep them reject states in the diagram...spinning smiley sticking its tongue out
Re: Assignment 1 Question 7 on PDAs
April 24, 2007 08:29AM
Yes..

I believe you can leave out the reject state, cause if you did not reach the accept state, then obviously you have crashed somewhere, and the word not accepted.
avatar Re: Assignment 1 Question 7 on PDAs
April 24, 2007 09:58AM
Nope you have to put in a reject state, or at least one and "everything" thats rejected can go to the one state. That's what the marker commented on my Assignment1. (I had multiple reject states)smile
avatar Re: Assignment 1 Question 7 on PDAs
April 24, 2007 03:39PM
avatar Re: Assignment 1 Question 7 on PDAs
April 28, 2007 12:22PM
just got my assignment back in the post, seems they wanted us to balance the (ab)* with the (ba)*. am i the only one who missed this?

i was also told that my reject states were redundant... that's only if you think of them as being seperate and like cluttered diagrams... sad smiley
avatar Re: Assignment 1 Question 7 on PDAs
April 29, 2007 01:23AM
lycium Wrote:
-------------------------------------------------------
> just got my assignment back in the post, seems
> they wanted us to balance the (ab)* with the
> (ba)*. am i the only one who missed this?
>

Probably not. No mistakes are unique smile

> i was also told that my reject states were
> redundant... that's only if you think of them as
> being seperate and like cluttered diagrams... sad smiley

Look on the bright side, at least you got some
valuable feedback. My assignment came back with
"See my comments at the end" written on the first
page of the assignment cover. Turning to the
last page (q7?) all I see was "good!" and an additional
comment about writing a coherent/readable symbol.

I'm still not too sure it was all correct smile
avatar Re: Assignment 1 Question 7 on PDAs
April 29, 2007 01:34PM
i don't recall seeing anything in the question about needing to balance the ab and ba terms. it's not that i find pushing (i'm a pimp) and popping (used to be a raver) difficult :|
avatar Re: Assignment 1 Question 7 on PDAs
April 29, 2007 07:53PM
lycium Wrote:
-------------------------------------------------------
> i don't recall seeing anything in the question
> about needing to balance the ab and ba terms.

From the tut101, a1, q7:
Draw a deterministic PDA that will accept the language
{(ab)^nbb(ba)^n | n >= 0}

From that it's pretty clear that you need to balance
the (ab) and (ba) strings, because n will be the same
on both sides.

--
Learn something new - updated weekly
avatar Re: Assignment 1 Question 7 on PDAs
April 29, 2007 09:15PM
indeed, and i usually take pride in noticing more subtle stuff like that :| kinda dived right into it...
Sorry, only registered users may post in this forum.

Click here to login