Welcome! Log In Create A New Profile

Advanced

2007 Q6

Posted by Rey 
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
Rey
2007 Q6
October 30, 2010 12:46PM
Question 6 (2007)

i) (be careful of my answer, haven't tested it)
1)Read a,
2)Push X onto stack1
3)Repeat 1 - 2 till b is read
5)Read b
6)Read b
7)Pop X from stack1 push X onto stack2
8)Repeat 6 - 7 till Pop /\ from stack1
9) Pop X, then Pop X from stack2
10)Read a
11)Pop X from stack2
12)Repeat 10 - 11 till Pop /\ from stack2
13)Read /\
14)Accept

ii) Yes. As 2PDA is equivalent in power to a Turing Machine and a TM is equal to an nPDA (3PDA)

iii) Yes. As above a 2PDA is equivalent in power to a TM.

iv) No. As L is non-context free and PDA only accept context free languages.
Sorry, only registered users may post in this forum.

Click here to login