0

So I understand that something like b* accepts epsilon, b, bb, bbb, etc.

However, when I take the union of these two characters, what types of strings are accepted by the language? Is babababa accepted?

jonnyd42
  • 490
  • 1
  • 9
  • 23

1 Answers1

0

(b U a)* means "any string of any length containing either a or b". It is all strings of as and bs. Yes, the string you suggest is matched. Any string with only as and bs (or no symbols at all) is matched.

Patrick87
  • 27,682
  • 3
  • 38
  • 73