Welcome! Log In Create A New Profile

Advanced

Oct 2006 Exam Question 7.

Posted by ian.coetzer 
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
Oct 2006 Exam Question 7.
November 02, 2009 03:43PM
Please see if these Accept, Loop definitions are correct.

My Attempt @ Question 7

*** Question 7 - revised solution ***

thx
Re: Oct 2006 Exam Question 7.
November 02, 2009 05:05PM
My solution is ...
Accept(T) = a(aa)*b
Loop(T) = a(aa)*ba

Basically the same except I made "starting with an odd number of a's" into a(aa)*
Re: Oct 2006 Exam Question 7.
November 02, 2009 05:12PM
Hi, I like your one better, changed the full solution:

*** Question 7 ***
avatar Re: Oct 2006 Exam Question 7.
November 03, 2009 02:39PM
loop ( T) = a ( aa ) * ba (a + b)*

as per cos301Y/104 pg5
Re: Oct 2006 Exam Question 7.
November 03, 2009 02:59PM
Actually thought about adding that last (a+b)* because those words will in fact loop. Thanks for pointing it out.

EDIT: like your sig, very true!!!
Re: Oct 2006 Exam Question 7.
November 03, 2009 03:08PM
Okay thanks even though (a+b)* will never be reached it could still form part of a valid input string!
Just checked tut 104 ... phew other answers i gave seemed ok, except for Question 5 which still have me bowled out for a duck!
must still check the other chap's solution diagram have not yet tried to trace through it.

*** Question 7 - revised solution ***

cheers
Re: Oct 2006 Exam Question 7.
October 31, 2010 12:01PM
After much battling with trying to understand how to determine what language is accepted by a TM and looking at ian's image.

Would I be wrong in saying that after the b at the end, you could still have some a's and the language would still be accepted by this TM:
So, shouldn't it be:
a(aa)*b(ab +aaab)*

Was wondering why the last set (i.e. (ab + aaab)*) would not be included?
Sorry, only registered users may post in this forum.

Click here to login