-2

$L = \{w \in \{a, b, c\}^*\mid w\text{ contains at least one }a\text{ and at least one }b\}$.

what's the proper regular expression for the following language?

xskxzr
  • 7,455
  • 5
  • 23
  • 46
정지윤
  • 1
  • 1

1 Answers1

-1

The DFA of this language can be easily written.

Apply state removal method to this machine, then you can receive a regular expression.

Reference to state removal method: How to convert finite automata to regular expressions?

Wenzel
  • 88
  • 1
  • 9