retagged by
1,215 views
1 votes
1 votes

Which regular expression best describes the language accepted by the non-deterministic automaton below?

download (7)

 
(A) (a + b)* a(a + b)b
(B) (abb)*
(C) (a + b)* a(a + b)* b(a + b)*
(D) (a + b)*


Answer: (A) 

DOUBT- I beleive the option A is wrong as dfa can accept string aaab but expression in A can not.

pls clarify? the given answer is wrong or not? if yes, then wha is the correct answer?

retagged by

2 Answers

Best answer
2 votes
2 votes

Expression A can accept aaab :

(a + b)* ---------- a

a           ---------- a

(a+b)    ----------  a

b          -----------  b


(a + b)* a(a + b)b can accept " aaab"

selected by

Related questions

0 votes
0 votes
1 answer
4
M_Umair_Khan42900 asked Dec 29, 2022
787 views
Show that the following pairs of regular expressions define the same language over the alphabet I = [a, b].s(a) p(pp)*( A + p)q + q and p*q(b) A +0(0+1)* + (0+1)* 00(0+1)...