Question: ( a ) Determine a regular expression for the language L over the alphabet { a , b } that ends with a letter that
a Determine a regular expression for the language over the alphabet that ends
with a letter that is different from the letter that it starts with.
For example, ababab and aaaaabaaaabbbbbb are words in but aaa,baabbaab,
aaaaabaaaaaa and abaa are not.
b Design a deterministic finite automaton DFA that will recognise all of the words in
as defined above.
c Use Theorem to develop a contextfree grammar CFG for the language
d Convert the following CFG to Chomsky Normal Form CNF:
bYaZ
baY
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
