The most basic form of automaton is the non-deterministic finite automaton as defined below.
The idea of an NFA is that you “feed” it a string after initialising it to its starting state, and then you explore the transitions it makes by biting off characters from the string until it is consumed. If the automaton ends up in an accepting state then the string is accepted; otherwise, the string is considered rejected. More formally:
NFAs represent an extremely limited but nonetheless useful form of computational power; intuitively, this is because they don’t have any memory. It is therefore an interesting theorem when a language can be recognised by an NFA. In this lecture we will show that (1) NFAs can be given some more capabilities without changing the class of languages they recognise, and (2) the non-determinism of the transition relation is not necessary. Having more capabilities is helpful when constructing an automaton, but having fewer capabilities is helpful when investigating the class of all automata.
We will ultimately show that every NFA can be transformed into a more complicated DFA that accepts the same language. But before we do so, we introduce a further strengthening of the features of NFAs that can be reduced directly to DFAs in one go.
The purpose of the \varepsilon -transition relation in an NFA\varepsilon is to allow the automaton to transition to states without consuming a symbol.
In Definition [017K] we described the formal language accepted by an NFA in terms of a labelled path relation q\mathrel {\vphantom {\xrightarrow {u}}\smash {\xrightarrow {u}}^*}
q'. Below, we give an analogous definition that accounts for \varepsilon -transitions.
We see from Example [017R] that the possibility of \varepsilon -transitions makes it much easier to design an automaton that corresponds to a given regular expression. This is one of the motivations adding this feature to NFAs, as we shall see in a subsequent lecture.