Are all infinite languages undecidable?

user1974753 picture user1974753 · Feb 13, 2013 · Viewed 7.2k times · Source

I am wondering are all infinite languages undecidable?

They must be right, as the TM trying to decide an infinite language would just loop forever, which makes it a recgonizer, not a decider.

Thanks guys.

Answer

sepp2k picture sepp2k · Feb 13, 2013

No, there are many infinite languages that are decidable. One trivial example is the language {n € N | a^n}, i.e. the language of words that only contain the letter "a". This language can be matched by the regular expression a*. so it is a regular language and thus decidable.