Science, asked by abhijithkrishnaai, 7 months ago

Consider the language L={All strings of odd length} over the input alphabet {a, b}.
Which of the following is the correct regular expression for the language L?
a) ((a+b)a(a+b)) * +((a+b)b(a+b)) *
b) a(a +b)* (a+b)*+b(a+b)* (a+b)*
c) a((a+b)(a +b)) * +b((a+b)(a+b)) *
d) None of the above​

Answers

Answered by charviharsoliya
19

Answer:

Consider the language L={All strings of odd length} over the input alphabet {a, b}.

Which of the following is the correct regular expression for the language L?

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

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

c) a((a+b)(a +b)) * +b((a+b)(a+b)) *

d) None of the above

Attachments:
Similar questions