On regular languages
In this series of posts, I wish to introduce a notion of automatic groups, i.e. groups which has an automatic presentation. To do so, we need to revise notions of regularity and that of automatic relation. Let us start with a notion of regularity.
Regular Languages
The concept of regularity for formal languages can be approached from several sides. We are going to define regulaity using finite state machines. We start with a finite set $\Sigma$ called an \emph{alphabet}. By concatenating elements of this alphabet, we can form \emph{words} or \emph{strings}. For example, if $\Sigma = \{0,1\}$, then possible words are $01$ and $00111$. Let us denote a collection of all possible words in the given alphabet $\Sigma$ as $\Sigma^*$. We refer to subsets of $\Sigma^*$ as \emph{formal languages} or \emph{languages} for short. There are might be different kinds of languages, in fact $\vert 2^{\mathbb{N}}\vert \}$ many, some of them easy to describe, while others extremely complicated. We are interested in languages which provide easy way to check membership, i.e. given a word $w$, we ask if $w\in L$ for some language $L$. One of such classes of languages are called \emph{regular languages}. To define such a language, we need to use machine called finite automata, which are going to be defined below.
(Deterministic) Finite automata
Let $M = (Q, \Sigma, \delta, s_0, F)$ be 5-tuple, where $Q$ is a finite set, $\Sigma$ is the alphabet, $\delta:Q\times \Sigma\to Q$ is a transition function, $s_0\in Q$ and $F\subseteq Q$ a set of accepting states. Given a word $w = w_0w_1\ldots w_{n-1}$ it induces a sequence of states $q = q_0q_1\ldots q_{n-1}$ as follows:
- $q_0 = s_0$
- $\delta(q_i,w_i) = w_{i+1}$, for all $i$.
We say that a word $w$ is accepted by the deterministic finite automaton $M$, if $q_{n-1}\in F$, i.e. it ends up in an accepting state. Let $L(M) = \{w\mid M \text{ accepts }w\}$ denote a language \emph{recognized} by $M$. Now we are ready to define a notion of a regular language.
Regularity
A language $L$ is called regular if there is a deterministic finite automaton recognizing it
There is also a notion of a nondeterministic finite automaton. We give its definition below.
Nondeterministic finite automata
Let $M = (Q, \Sigma, \delta, s_0, F)$ be a 5-tuple as before with only exception that $\delta:Q\times S \to \mathcal{P}(Q)$. In other words, there might be several outgoing edges corresponding for some pair of state and letter. Observe that given word $w$, now induces several runs, in fact up to $Q^{\vert w \vert}$. A nondeterministic finite automaton $M$ accepts a word $w$ if there is a accepting run, i.e. it ends at an accepting state. Comparing two kinds of automata, it is clear that nondeterministic finite automata subsume deterministic ones. However, they turn out to be equivalent. This equivalence is captured in the following proposition, proof of which can be found in virtually every book on automata theory.
Equivalence of deterministic and nondeterministic finite automata
A language is recognized by a nondeterministic finite automata if and only if it is regular.
Let us end this post here. I hope to go through automatic relations in the next post.
Comments
Post a Comment