0
$\begingroup$

Question:The set of all first names given to children born in New Zealand in 1996

I think this language is regular because every element in the set can be a accept state

How can I prove if the language is regular?

$\endgroup$
2

1 Answer 1

3
$\begingroup$

Every finite language is regular. The easiest way to prove it is to build the regular expression $w_1+w_2+\dots+w_n$ where $\{w_1,\dots,w_n\}$ is you finite language.

You can also build an automaton as you said. May be build a separate one for each word and the do a finite union is the easiest.

$\endgroup$
1
  • $\begingroup$ Just in case: $+$ is also $|$ in regular expression notation. $\endgroup$ Commented May 26, 2013 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.