Machine-translated by Google. Questions are authored in English.
Top

Discussion

Two regular expressions are equivalent when

  • A.they can be written using the same character classes
  • B.they describe exactly the same set of strings
  • C.they contain the same number of operators and symbols
  • D.their nondeterministic automata have the same number of states

Answer: B

Equivalence is about the language denoted, not the notation. Minimising the deterministic automata of both and comparing them decides equivalence, since the minimal machine is canonical. Two expressions that look nothing alike may well denote exactly the same language.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.