I would like ask if is it possible to represent "?" quantifier using only union (+) and closure(*) quantifiers.
For example, "a+" can also represented as "a(a*)". How can you represent "a?" with only "*"s and "+"s?
I would like ask if is it possible to represent "?" quantifier using only union (+) and closure(*) quantifiers.
For example, "a+" can also represented as "a(a*)". How can you represent "a?" with only "*"s and "+"s?
a?
can be represented as a + ε
and, as mentioned, a+
can be represented as aa*
.