How DFA operates ( Theory with block diagram of FA )

8256

Block diagram of finite automata and operation of DFA:

The thought process of a finite automaton can be graphically represented as;

Block diagram of Finite Automaton (FA)
Block diagram of Finite Automaton (FA)

The various components consist by a finite automata is as follows;

  • Input tape: The input tape has the left end and extends to the right end. It is divided into squares and each square containing a single symbol from the input alphabet ∑. The end squares of the tape contain the end markers ₵ at the left end and the end marker $ at the right end. The absence of endmarkers indicates that the tape is of infinite length. The left-to-right sequence of symbols between the two endmarkers in the input string to be processed.
  • Read only Head: The tape has a read only head that examines only one square at a time and can move one square either to the left or to the right. At the beginning of the operation the head is always at the leftmost square of the input tape. For further analysis, machine restrict the moment of the read only head from left to right direction only and one square every time when it reads a symbols. Note: The read head never moves to the left direction. When it there is not more symbol in the next right move of the input tape, at this state the machine stops proceeding and automaton terminates its operation.
  • Finite control: There is a finite control which determines the state of the automaton and also controls the movement of the head. The input to the finite control will usually be the symbol under the read head (assumed a) and the present state of the machine (assumed q) to give the following outputs;
  1. A motion of Read head along the tape to the next square.
  2. The next state of the finite state machine given by δ(q, a).

Operation of finite automata:

A finite automata or a deterministic finite accepter operates in the following manner. At the operation initial time, it is assumed to be that the machine in the initial state q0, with its input mechanism on the leftmost symbol of the input string in input tape. During each move of the automaton, the input mechanism advances one position to the right, so each move consumes one input symbol. When the end of the string is reached, the string is accepted if the automaton is in one of its final states. Otherwise the string is rejected. The input mechanism can move only from left to right and reads exactly one symbol on each step. The transitions from one internal state to another are governed by the transition function δ. For example, if
δ(q0, a) = q1,
then if the finite automaton is in state q0 and the current input symbol is am then machine will go into the next state q1. Once it gets to state q1, and then no matter what symbol is read, this machine never leaves state q1 until another input symbol is scanned or accepted.

For example;

Check whether string s = {01} is accepted by the machine or not if machine M is defined as
M = ({q0, q1, q2}, {0, 1}, δ, q0{q1}), where δ is given as;
δ (q0, 0) = q0,
δ (q0, 1) = q1,
δ (q1, 0) = q0,
δ (q1, 1) = q2,
δ (q2, 0) = q2,
δ (q2, 0) = q1.

This machine M accepts the string 01. Let’s starting from the state q0, the symbol 0 is scanned form the input tape first. Looking at the edges of the graph, it is clear that the automaton remains in state q0. Next, the read-only head upgraded by 1 and it read 1and the automaton goes into state q1. We are now at the end of the string and, at the same time, in a final state q1.

Useful Tutorial for you:

Previous QuizDFA : definition, representations, application ( Deterministic Finite Automata )
Next QuizWireless Networking : Devices, application, advantages and disadvantages

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.