Question: Problem Specification For each language L 1 to L 5 , described below, you need to do the following: Create a regular expression that defines
Problem Specification
For each language to described below, you need to do the following:
Create a regular expression that defines the language. You will receive up to marks for each
regular expression, depending on how accurately it defines the language. You must use the
definition of regular expressions given in definition using a different definition will lead
to loss of marks.
Construct a finite state automaton FSA that accepts the language, then pick a string that is in the
language and show your FSA accepts it and pick a string that is not in the language and show
your FSA rejects it You will receive up to marks for each FSA and tests, depending on their
correctness.
Note that a total of marks are available for this assessment.
The alphabet will be used throughout this coursework. The languages are:
which has exactly one but any number of as
which contains exactly two as or exactly two bs although not necessarily adjacent.
which has all the bs appearing before any of the as or all the as appearing before any of the bs
where there can be any number of bs but the number of as must be even, although the as do
not have to be adjacent.
which has an odd number of bs and an even number of as
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
