Question: 1 . [ 5 marks ] Let Sigma = { a , b } . Consider the following languages LA and LB over

1.[5 marks] Let \Sigma ={a, b}. Consider the following languages LA and LB over \Sigma :
LA ={w in \Sigma | w contains an even number of occurrences of symbol a}
LB ={w in \Sigma | each pair of consecutive bs in w is separated by a substring of as of length 2i, i >=0}
Clarification: LB is saying that between bs there must be 2i as for some i >=0(e.g. baab in LB
and baaab / in LB ). Also, i must be an integer value >=0.
For each of the following strings, decide whether it is a member of LA or LB :
(a) b
(b) aabbbbaa
(c) abaaabaaa
(d) bbaaaabbaab
(e) a
2.[5 marks] Consider the following DFA M :
Describe M as a 5-tuple M =(Q,\Sigma ,\delta , q0, F ). In particular, give
(a) Q
(b)\Sigma
(c)\delta (in the form of a transition table)
(d) q0
(e) F

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!