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.
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.