Welcome! Log In Create A New Profile

Advanced

Ass1 Q7 strategy

Posted by Anonymous User 
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
Anonymous User
Ass1 Q7 strategy
March 28, 2008 08:54AM
Hey guys,

what strategy did you use to draw the PDA for this question? I just sort of "figured it out" and was wondering if there was a better way to do it.

I also have another question (it may be stupid tho) - what is the definition of a context-free language..i.e. what make a language context free rather than regular/non-context free etc?

later,

kram
Re: Ass1 Q7 strategy
March 30, 2008 12:19PM
For strategy, I also just 'drew it'. Can't say I have a strategy.

Contect-free languages are those that are (essentially) a collection of terminals and non-terminals, one of them being a starting non-terminal.

Regular languages are those that can be described by a regular expression.

So, when presented by a language, you can check whether it can be created by a regular expression or a set of productions, and in many cases, by both. They are not mutually exclusive. That, I think, is more or less the explanation that the textbook gives. Have a look at the circles on page 300.
Sorry, only registered users may post in this forum.

Click here to login