Welcome! Log In Create A New Profile

Advanced

2 Questions

Posted by dve83 
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
2 Questions
May 12, 2010 08:06PM
Hi Got two questions:
No getting my mind around it..

1. an FA not containg 'ba'?
2. an FA containing even number of substrings of 'ab'

appreciate your help

Danie van Eeden
------------------------
Anonymous User
Re: 2 Questions
May 13, 2010 02:18PM
FA not containing 'ba'

State - (1)
read a go to State 2
read b go to State 3

State +(2)
read a stay in State 2
read b go to State 3

State +(3)
read a go to State 4
read b stay in State 3

State (4) dead end state
read a stay in State 4
read b stay in State 4
Anonymous User
Re: 2 Questions
May 13, 2010 02:45PM
FA containing even number of substring 'ab'

State - (1)
read a go to State 2
read b stay in State 1

State (2)
read a stay in State 2
read b go to State 3

State (3)
read a go to State 4
read b stay in State 3

State (4)
read a stay in State 4
read b go to State 5

State +(5)
read a go to State 2
read b go to State 1


Think this is correct.
avatar Re: 2 Questions
May 14, 2010 12:12AM
In broader terms, actively Reject the strings you don't want. Send them to /dev/null on the picture.

ie. Create a Sackgasse/ Cul du Sac / Dead End into which the undesireable substring is forced to go to die.
Re: 2 Questions
May 17, 2010 11:04AM
This was a tricky question, however, gvs, never thought of working out an answer this way.
Sorry, only registered users may post in this forum.

Click here to login