When deterministic automaton, I need to prove that you can't implement the language in it, because the language is not regular.
Easiest way to prove that a language is regular, is just by making an automaton for it. But if the automaton is not regular, you can't just say that it's not regular because you couldn't build an automaton for it.
So I am wondering, how to prove that a language is not regular the simplest way?
Given language:
$$ L = \{a^n b^n | n > 0\} $$
Definition: The language accepts series of a
's and b
's where the amount of a
s equals to the amount of b
s. This is not a regular language.
How can you prove that it's not a regular language?
From what I remember (I didn't understand it much), you had to take a sub-langauge of that language, and mark it as W
So $$ W = \{a^i\} $$
Then select 2 words from W and mark them as w1
and w2
$$ w1 = a^i $$ $$ w2 = a^j $$
where i != j
And then I don't really remember what to do.