Welcome! Log In Create A New Profile

Advanced

2006 Q7

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
2006 Q7
October 28, 2010 04:36PM
Question 7 (2006)
Correct me please!

Accept(T) = a(aa)*b
Loop(T) = (aa)*+aba
Loop(T) = a(aa)*ba(a+b)* (Correction read bellow)


Should I do this with a verbal description like assignment 4?
Re: 2006 Q7
October 30, 2010 11:21AM
Q7

According to the remarks on Oct 2006 exam in Tutorial 104:

Accept: a(aa)*b
Loop: a(aa)*ba(a+b)* //To get to the loop part one a should at least be read.

I suppose one could give a verbal description, but only if there’s time...

Jasper
avatar
Rey
Re: 2006 Q7
October 30, 2010 11:34AM
I was thinking, which is probably a bad thing.
That if you run 'a' you could probably exit the loop by doing a 'b', but aa* would loop for as long as there is input. I suppose then I should have had aa+ smiling smiley
Second possible loop would be running an 'a', then a 'ba'. Since the input is the tape, it would not read anything further, as the head would just bounce back, and forth at those two input, but you right . It could still run an 'a' then loop a couple of times on 'aa', then go into the death trap of 'ba'. After that would it matter if we hand any further input (a+b)*?
Re: 2006 Q7
October 30, 2010 11:46AM
After reading 'ba' it doesn't matter what is left on the tape, so I suppose adding the (a+b)* illustrates that it does not matter what words follow if any, your going nowhere.
Re: 2006 Q7
October 30, 2010 08:55PM
Agreed with updated solution.
Sorry, only registered users may post in this forum.

Click here to login