Limitations of Finite Automata



Simple finite machines can be formed through finite automata. In this chapter, we will see some of the limitations of finite automata and highlight some cases where the simple finite automata fails and where we need to use other more complex automata.

Finite Automata and its Features

Though we will discuss the limitations of finite automata, but we must recap what this exactly is. As we know the finite automaton is a computational device that reads input symbols one at a time and changes its internal state based on the input.

It consists of a finite set of states, input symbols, transition function, initial state, and final states. It has a wide range of applications include logic analysis, communication systems, text processing, and hardware modelling, etc.

Along with their versatile applications, the finite automata have inherent limitations that restrict their applicability to certain classes of problems. Let us discuss them one by one in the following few sections.

Computational Power

With respect to computation, there are certain limitations of finite automata. Finite automata are connected to regular languages, which is the simplest class of formal languages in the Chomsky hierarchy. These languages can be recognized by finite automata or described by regular expressions.

They include useful patterns like strings with even 0s, strings ending with "ing", and valid email addresses, etc. But for a little complex problem like common patterns matching as we see in balanced parentheses checking, arbitrary palindromes, and strings with equal symbols. The finite automata fail due to its finite memory.

Comparison with More Powerful Computational Models

To understand the limitations of finite automata in a better way, it's needed to compare them with more powerful computational models −

  • Pushdown Automata (PDA) − These are extending version of finite automata with a stack inside them. It allows recognizing context-free languages. PDAs can handle nested structures, making them suitable for tasks like parsing programming languages.
  • Linear Bounded Automata (LBA) − More powerful automata after PDA are LBA. LBAs can recognize context-sensitive languages, offering more power than finite automata while still having some restrictions.
  • Turing Machines − In Chomskys hierarchy TM are the most powerful model. Turing machines have an infinite tape for memory and can compute any algorithmically solvable problem.

Limitations of Finite Automata Considering Memory Constraints

The main problem for finite automata is that finite automata have limited memory beyond the current state. This means they can only remember a limited amount of information about the input they've seen.

Once transitioning to a new state, they lose all information except for the current one. This makes it impossible for finite automata to handle tasks that require tracking an unbounded amount of information. Due to this issue they are not capable of counting unbounded quantities.

Inability to Count Unbounded Quantities

Finite automaton can be designed to count up to any specific number (finite), it cannot count to an arbitrary limit determined by the input.

For example

  • A finite automaton can be constructed to accept strings with exactly 100, 0s.
  • However, no finite automaton can be accepting strings of the form anbn for all values of n.

Let us see some other examples where finite automata fails.

Examples of Languages beyond Finite Automata Capabilities

Let's consider the following examples of languages that cannot be recognized by finite automata −

  • {anbn | n ≥ 0} − Strings with an equal number of 'a's followed by 'b's. This requires counting and comparing the number of 'a's and 'b's, which is impossible with finite memory.
  • {ww | w is any string} − Strings that consist of two identical halves. Recognizing this language would require remembering the entire first half of the string to compare it with the second half.
  • {anbmcn | n, m ≥ 0} − Strings where the number of 'a's matches the number of 'c's, with any number of 'b's in between. This language requires counting and remembering two separate quantities across an arbitrary distance.

Conclusion

Finite automata is a powerful concept used to model and analyze computational processes, however it has some limitations.

Finite automata suffers from finite memory problem and it cannot keep anything in memory except the current state. We demonstrated this with the help of a set of examples where the finite automata fails. In all of these examples one thing is common, there are some common pattern that should be remembered for later processing. The finite automata fails at that moment.

Advertisements