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

Discussion

State whether the following is true or false.
Every regular expression describes a language that some finite automaton accepts.

  • A.True
  • B.False
  • C.True only at large scales
  • D.False only at small scales

Answer: A

Correct answer: True

This is one half of Kleene’s theorem: every language denoted by a regular expression is accepted by some finite automaton, and conversely. Thompson’s construction gives the automaton mechanically, and the subset construction then makes it deterministic. The equivalence is what allows a scanner generator to turn a specification into a program.

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

Post your comment

Please log in or register to post a comment.