Finite automata and ways to set them. Automata Ways of setting Basic definitions n Finite. Standard or automatic description languages

The representation of a finite automaton is actually reduced to a description of the automaton functions that define it.

There are three ways to define finite automata:

· Tabular (matrices of transitions and outputs);

Graphical (using graphs);

· Analytical (using formulas).

Analytical method– the automaton is given by a system of equations. It follows from such a system that for a finite number of possible internal states, the number of possible values ​​of automaton functions also turns out to be finite. An example of such a task is the system of equations that define Mealy automata and Moore automata

tabular way. A table of the state of the automaton is compiled for the transition function - δ and the output function. Wherein:

the columns of the table correspond to the elements of the input alphabet x,

table rows correspond to states (elements of a finite set Q).

The intersection of the i-th row and the j-th column corresponds to the cell (i, j), which is the argument of the functions 8 and λ of the automaton at the moment when it is in the state qi at its entrance - the word x j , and in the corresponding cell we write the values ​​of the functions 8 and λ. Thus, the whole table corresponds to the set Q X x.

When filling in the transition table, each cell is uniquely determined by a pair of symbols: the symbol of the next state and the symbol of the output signal.

In practice, automaton functions are given by two finite tables, respectively named transition matrix and conclusion matrix. In this case, the rows are denoted by the letters of the input alphabet, and the columns by the letters of the internal alphabet (symbols encoding the internal state of the automaton).

In the transition matrix, at the intersection of row x k and column q r, the value of the transition function δ(q i , X) and inference functions λ(q, X). In some cases, both tables are combined into one table.

Graphic way.

An automaton is specified using a graph, diagram, graph, etc. An assignment using a directed graph is a more convenient and compact form of describing an automaton.

automaton graph contains

· peaks, corresponding to the state qiОQ,

· arcs, connecting vertices are transitions of the automaton from one state to another. On the arcs, it is customary to indicate pairs of input and output signals - transition signals.

If the automaton passes from the state q 1 into a state q2 under the influence of several input signals, then this variant will be represented on the corresponding arc of the graph through a disjunction. To represent the automaton, bipolar graphs with distinguished initial and final states are used.

Development of the "capacitance measuring instrument" scale

indication + - overload off
0 initial state 1 0 0 0 No
1 0 2 0 13 0 Yes
2 50 3 1 13 0 Yes
3 100 4 2 13 0 Yes
4 150 5 3 13 0 Yes
5 200 6 4 13 0 Yes
6 250 7 5 13 0 Yes
7 300 8 6 13 0 Yes
8 350 9 7 13 0 Yes
9 400 10 8 13 0 Yes
10 450 11 9 13 0 Yes
11 500 13 10 13 0 Yes
12 OV 0 0 0 0 No
13 accident 0 0 0 0 No

Fig.2.5. Graph of the scale of the device for measuring capacitance


Conclusion

Since the use of generators with oscillatory circuits (RC type) for generating high-frequency oscillations does not satisfy, an LC type circuit was taken for the developed generator (a three-point circuit with autotransformer coupling was taken as a phasing circuit, the active element is a transistor).

In the theoretical part of this course work, the elements of LC-type generators were considered. The classification of LC-type generators, their purpose, as well as various generator circuits were also considered. As well as the technical characteristics of the generator elements.

In the practical part, the topic concerning encoders, decoders, their purpose was disclosed, and electrical functional and electrical circuit diagrams of encoders and decoders were also designed. The theme of Karnot maps was revealed. The “b” segment of the seven-segment indicator was also developed. A state machine was developed for the scale of the instrument for measuring capacitance, as well as a graph for it.


Baranov Viktor Pavlovich Discrete Math. Section 6. State Machinesand formal languages.

Lecture 31 Synthesis task. Elementary cars and you

Lecture 30 DEFINITION AND METHODS OF DESIGNATION OF FINITE AUTOMAT.

SYNTHESIS PROBLEM. ELEMENTARY AUTOMATES

Lecture plan:

1. Definition of a finite automaton.

2. Methods for defining a finite automaton.

  1. The problem of automata synthesis.
  2. Elemental machines.
  3. The problem of the completeness of an automaton basis.
  4. Canonical method for automaton synthesis.
  1. State machine definition

SFE do not take into account the fact that real devices operate in time. Compared to the SFE, the finite automaton is a more accurate model of a discrete converter. b information developer. At the same time, the concept of a finite automaton, like any model, is I but with a number of simplifying assumptions.

First, it is assumed that the input and output of the automaton can be in only one of a finite number of different states at any time. If real b If a converter has a continuous input signal, then to describe it using a finite automaton, it is necessary to quantize this signal. In the formal definition of the automaton, the finite set of input and output states of the automaton is called coo t responsibly to the input and output alphabet, and individual states the letters of these alphas and vits.

Second, it is assumed that time changes discretely. The input and output states correspond to a discrete time sequence. b Since the moment of time is uniquely determined by its index, then for the sake of simplicity we will assume that time takes the values ​​1, 2, ..., ... The time interval is called tact.

The operation of the machine is presented as follows.

The input of the automaton receives signals from the input alphabet, which leads to the appearance of signals at the output from the input alphabet. W a The dependence of the output sequence on the input sequence depends on the internal structure of the automaton. Note that, in contrast to the SFE, which do not have memory, the automaton pre d is a device with memory, i.e., the output of the automaton is determined not only b to the entrance, but also to the backstory. History accounting I is determined by the dependence of the output signal not only on the input, but also on the current state, which we denote.

Let us give a formal definition of an automaton.

state machinename five objects

, (1)

where

input alphabet; one of the possible entry states;

a finite set calledoutput alphabet; element you of this set determine the possible output states;

a finite set calledalphabet of internal states I nii;

– transition functionmachine: ; this function assigns a state to each “input-state” pair;

output function machine: ; this function associates each input-state pair with an output value.

The law of the functioning of the automaton: the automaton changes its states in accordance with t function and generates output signals in accordance with the function to the action:

  1. Ways to define a state machine

1. Tabular assignment method. Since for functions and scope e values ​​and values ​​belong to a finite set, then they are specified using tables.

Example 1 We define the automaton as follows: , . Define the function usingjump tables,and the function using exit tables.

Table 1. Jump table Table 2. Output table

Entrance

State

Entrance

State

If the sequence of signals at the input of the automaton is known, then the tables e moves and exits uniquely determines the output sequence.

2 . Graphical way to set. used transition-output diagram.It is a directed multigraph in which each internal t the vertex corresponds to the early state of the automaton. Transitions of the automaton from state to state are depicted by arrows, on each of which an input symbol is written, in s calling this transition, and the output symbol generated by the automaton.

| | |

Fig.1 Diagram of transitions-outputs

Example 2 It is required to build an automaton that would work as follows a zom: in each cycle, the next binary digits of the terms are received at the input of the automaton, and in the tomato produces the corresponding binary digit of their sum. For two h row terms we have: , .

The automaton is in state 1 if, when adding the previous digits, the and carries carry, and is in state 0 otherwise. Transition-exit diagram and zana in fig. 2.

00|0 11|1 01|0

01|1 10|0

10|1 00|1 11|1

Rice. 2

  1. The problem of automata synthesis

By analogy with the problem of synthesizing the SFE, one can pose the problem of synthesis for the automatic a comrade There is an unlimited set of basic automata. It is required to assemble an automaton with a predetermined functioning. In this case, the problem of synthesis collides t with certain problems.

Assume that you need to connect the output of the automaton to the input of the automaton. This is possible under the condition that otherwise about swarm machine will not understand the signals coming from the first. This leads to confusing and situations where some connections are not possible.

To overcome this obstacle, the concept of a structural automaton is introduced, in which about all alphabets (input, output, and internal states) are encoded by binary words.

Let be a finite set of elements, and set e set of binary words of length, where. An arbitrary injective mapping will be calledencoding the set in binary words.

Let's encode alphabets for an arbitrary automaton:

Let us denote the encoded input, output, and state of the automaton at the moment of time, respectively. Then the law of operation will be presented in the form

(2)

The automaton obtained after coding is called structural . We assume that the structural automaton has binary inputs, binary outputs, and the internal state of the automaton is given by a binary word of length. On fig. 3 shown abstract automaton and its corresponding structural automaton.

… …

Rice. 3

The transition to a structural automaton provides two important advantages for synthesis. e stva.

1 . Compatibility of inputs and outputs, since binary and n formation. We will not give a general definition of a circuit from structural automata it is similar to SFE.

2 . Let us write relations (2) in “coordinates”:

(3)

From (3) it follows thatthe law of functioning of a structural automaton is given with and Boolean Function Stem.

  1. Elementary automata

We single out the simplest structural automata and give them a name.

Note first that a functional element that has only one state can be considered as an automaton without memory.

Let's move on to automata with two states. Let the automaton have one binary input and one binary output coinciding with the internal state: :

Rice. four.

To set the automaton shown in Fig. 4, it is enough to specify only the table p e transitions:

Table 3

Entrance

State

Instead of asterisks, you need to put 0 and 1. This can be done in 16 ways, however, not all of them are acceptable. Suppose, for example, that in the first column of table 3 both elements n you are zero. Such an automaton, once in state 0, will no longer exit it, that is, it will work as a functional element. An analysis of similar situations shows that in order to obtain an automaton that is not reducible to an automaton without memory, it is necessary to require about to ensure that each column of Table 3 contains both zero and one. Such tables are ego h e tyre.

Table 4 Table 5

Entrance

State

Entrance

State

Table 6 Table 7

Entrance

State

Entrance

State

We have only two simplest automata, since 7 is obtained from 4, and 6 from 5 by inversion of internal states.

The automaton given by Table 4 is called delay or -trigger :

that is, this automaton delays the signal by one cycle.

The automaton specified by Table 5 is calledtrigger with counter input or -trigger . The state of the automaton changes to the opposite if the input is 1, and remains unchanged if the input is 0:

Let at the initial time- trigger is in state 0. If in n e which point in time- the trigger is in state 0, this means that an even number of ones has been received at the input of the automaton. If in state 1, then is odd. So arr and zom, - the trigger counts the number of units at the input, but since it has only two states I niya, then counts to two.

When triggers are physically implemented, two outputs are used: direct and inverted (Fig. 5). If we swap them, then- trigger, you get an automaton specified by table 7, and from- trigger automaton specified by Table 6.

Rice. 5.

  1. The problem of the completeness of an automaton basis

A set of structural automata is called complete (or automaton b a zisom) if it is possible to construct any predetermined structural automaton from them.

The efforts of mathematicians to obtain an analog of Post's theorem for automata are not increased. n chalked up success. In 1964 M.I. Briefly proved the non-existence of an algorithm for determining e system completeness. In this case, variants of the completeness theorem with additional assumptions about the system are of interest. Let's consider the most popular of them.

Theorem. automatic system,containing a full set of PV and -trigger (or -trigger) is complete.

Proof. Consider an arbitrary automaton given by the relation e (2), and describe its scheme of the indicated automata, calledcanonical structure(Fig. 6) .

The scheme consists of two parts.

Rice. 6.

The left half is called the memory part. It consists of triggers, the set of states of which forms the state of the automaton: if at the moment of time

, …,

then it means that the automaton is in the state.

The right half is called the combinational part and represents the SFE. The inputs of this circuit are:

  1. binary word input signal of the automaton;
  2. binary word current internal state of the automaton.

Outputs:

  1. binary word output signal of the automaton, which is implemented t according to formulas (3);
  2. a binary word that enters the inputs of triggers in memory a current part and controls the memory of the machine.

Let us show that the memory control signals are Boolean functions of the same variables as the output of the automaton, which means that they can be implemented completely with and the FE stem.

At each moment in time, the memory control signals must translate a in tomato from state to state. To do this, you need to change the state of each trigger

, .

The -triggers or -triggers used in the canonical scheme have the following e next property: for any pair of states, there is an input signal, e driving machine from state to state. Let's denote this signal by . For -trigger, since the state in which the -trigger is set is equal to the input signal. For -trigger: when you need to enter n about give 0 to keep the state unchanged; at 1, so that the trigger "flips".

So, or in vector form

Let us express from the law of functioning of the automaton (2). Then

The theorem has been proven.

  1. Canonical method for automaton synthesis

Let's consider this method on a concrete example.

Example. On the conveyor, along which parts of two types move and, installed in flax machine, whose task is to sort parts in such a way that after passing e passing by the machine, they formed groups. Wrong part machine sta l nods from the assembly line. It is required to build a circuit of such an automaton using a -trigger and elements "AND", "OR", "NOT".

The automaton synthesis is divided into the following stages.

1 . Construction of an abstract automaton.

Input alphabet . Output alphabet , where C part collision, P her pass. The internal states of the automaton reflect its memory of which part of the group it has already formed: . As the group is formed, the automaton moves cyclically through these states without changing the state when an unsuitable part arrives. The transition-output diagram is shown in fig. 7.

| | |

Rice. 7.

2 . Alphabet coding.

One of the possible coding options is given in the following. e blowing tables.

Input Output Status

3 . Construction of the canonical structure of the automaton.

The canonical structure of the automaton being developed is shown in fig. eight.

Rice. eight.

Let us find the dependences of the SFE outputs on the variables, first in tabular form (Table 8), according to k about which we will later construct the formulas

, .

Table 8

These functions are calledpartially defined, since they are not defined at. To represent these functions by formulas, they are extended in such a way as to obtain a simpler form of formulas.

4 . Representation of automaton output functions and memory management functions r mules.

Using the methods of minimizing Boolean functions, we build, if possible, ek about nominal representation of functions, formulas in the basis:

5 . Implementation of the SFE and the final scheme of the automaton (Fig. 9).

Rice. 9.

SFE

SFE

NOT

OR

Combination schemes, although they allow you to implement any fixed dependencies between input and output signals cannot change the nature of their behavior (i.e. data processing sequence) - any such change requires a change in the structure of the circuit, i.e., in fact, a transition to another circuit. It is possible to solve the problem of restructuring the work without changing the structure of the scheme, if we introduce into it memory elements, which would allow fixing and saving the intermediate states of the device - in this case, the output signal will depend not only on the input signal, but also on the state of the circuit. If the number of such elements is finite, then, as mentioned above, the discrete device will be called end machine.

state machinecalled the system Y, Q> , where X and Y are finite input and output alphabets, Q is a finite set of internal states, Y (x, q) - transition function and Q (x,q) - output function.

As stated earlier, Y (x,q) specifies the order of transformation of the input symbols and the state of the automaton on the previous cycle into the state on the next one, a Q (x,q) - transformation of input symbols and the state of the automaton at the current cycle into an output symbol. If a q 0 is the initial state of the automaton, and i- measure number, then its work is described by the system:

These ratios are called systems of canonical equations finite automaton. You can use them from q 0 , sequentially find all subsequent states of the automaton and output symbols.

There are two types of machines - initial and non-initial. AT initial automata have a fixed initial state (i.e. they always start from the same state q0). In non-initial automata, any of the set Q; this choice determines the further behavior of the automaton.

The representation of a particular finite automaton is actually reduced to a description of the automaton functions that define it. It follows from system (9.3) that for a finite number of possible internal states, the number of possible values ​​of automaton functions also turns out to be finite. They can be described in various ways, the most common of which is tabular and with the help diagrams.

AT tabular way automaton functions are given by two finite tables, named respectively transition matrix and output matrix. In these tables, the rows are denoted by the letters of the input alphabet, and the columns are denoted by the letters of the internal alphabet (symbols encoding the internal state of the automaton). In the transition matrix at the intersection of the row (xk) and column (qr) the values ​​of the function Y are placed ( q r, x k), a in the matrix of outputs - the values ​​of the function Q (q r , x k).

Elements of automata theory

Plan:

1. The concept of an automaton, the principle of operation of an automaton

2. Methods for specifying finite automata

3. General problems of automata theory

Theoretical information

Man has always striven to make his work easier by making some mechanical devices work for him without his own intervention. At first they were fairy tales, then they began to turn into ordinary things. Car, TV, washing machines, entire industries operate without human intervention. Moreover, human intervention in most cases is not required, and in some cases, such intervention can lead to negative phenomena. The concept of "machine", as a device that performs a certain type of action, has long been interpreted by people in this way.

The concept of an automaton, the principle of operation of an automaton

concept machine considered in two aspects:

1. Machine - device which performs some functions without the direct participation of a person. An automaton is a real device, understandable why and how it works, at least for those people who designed and manufactured it. A car, a tractor, an airplane, a traffic light, a TV, a telephone - all these are automatic machines. In this aspect, a computer should be understood as an automaton that works according to a program compiled by a person.

2. Automaton - a mathematical concept denoting the mathematical model of real technical devices. The automaton is an abstract device, it is not clear why and how it works and, in general, why it can work. In this aspect, the automaton is a "black box", which is theoretically capable of carrying out certain actions. From the point of view of mathematics, it is absolutely unimportant what, how and why produces certain actions.

Any automaton must have a certain number of inputs, a certain number of outputs, and a certain number of internal states.

Algebraic automata theory is a branch of theoretical cybernetics that studies discrete automata from an abstract algebraic point of view.



The general theory of automata contains various subsections. Depending on the subject of study, it is divided into the abstract theory of automata and the structural theory of automata.

Abstract automata theory studies the transitions made by the automaton, which is affected by input signals, as well as output signals as a result of these transitions.

Subject of study structural automata theory is the structure of the automaton, as well as the structure of input and output signals, for example, methods of encoding input and output signals, etc.

Definition of State Machines

Machine- an abstract model of a device operating in discrete time that processes a finite sequence of input signals and turns them into a finite sequence of output signals (reactions).

In the process of operation of a finite automaton, a finite number of its internal states sequentially change, and the state of the automaton at a certain point in time is uniquely determined by the input and output signals. Such automata are the basis of all modern computer technology and all kinds of discrete systems of automatic control and management.

The concept of an automaton is so abstract that it is difficult to say when a person did without any automata at all. Any devices are suitable for the definition of an automaton, including those with which primitive people hunted or threw stones, protecting their home from the enemy.

Algorithm- understandable and an exact formal instruction to the performer that unambiguously determines the content and sequence of operations that translate a given set of initial data into the desired result

It is believed that the first software device created by man was a clock. Watch mechanisms, with the help of a spring that drives gears and cam mechanisms, gears and levers, perform a number of specific actions. An example of such a clock mechanism is the famous clock at the Central Puppet Theater in Moscow, where it sets in motion twelve fairy-tale characters located on the dial.

Let us point out some interesting historical facts related to automata as mechanical devices.

1. The German philosopher and alchemist Albert the Great, from 1216 to 1246, created an “iron” servant - an automaton that performed the duties of a gatekeeper in the house.

2. The astronomer Johann Müller (Regiamontanus) (1436-1476) created a mechanical eagle that greeted the entrance to Nuremberg of Holy Roman Emperor Maximilian II with a tilt of the head and movement of the wings.

3. Mechanic Jacques de Wacanson (1709-1782) - the author of the world's first automatic loom. He created the image of a mechanical duck, an exact copy of his living counterpart - swam, cleaned feathers, swallowed grains from the palm of his hand. His mechanical flutist, who performed eleven pieces of music, amazed the people who lived in those distant years.

4. Russian inventor of the 19th century. A. M. Gamuletsky created a whole mechanical cabinet, in which there were many automata designed by him. Here, among other things, there was a talking head of a sorcerer and a cupid playing a harp, which amazed the imagination of contemporaries.

5. The first primitive adding machine was designed in 1641 by Blaise Pascal. The impetus for the opening was the torment of his father - the tax, an inspector who worked day and night with big calculations. By inventing an adding machine, an eighteen-year-old son saved his father from complex calculations, and gave the world the first calculator that adds and subtracts numbers.

6. The first chess machine was built in 1890 by the Spanish engineer Torres Quevedo. Such an automaton could only play a rook endgame (king and rook against king).

7. The first computer with automatic control was created by Charles Babbage in 1822. He designed adding machine, which had memory and arithmetic devices. These devices became prototypes of similar devices in modern computers.

Types of machines.

The machine can be interpreted as a device that performs the processes of receiving, converting and transmitting energy, materials or information in accordance with the program laid down in them, but without the direct participation of a person.

Every machine has its own base sets, which include: input alphabet, output alphabet, set of automaton states.

A characteristic feature of a finite automaton is the presence memory, which determines the state of the automaton depending on time. The external manifestation of the various states of the automaton is its reaction to the same type of influences (signals).

In the operation of finite digital automata, an important concept is time.

Automata can be classified according to various criteria.

1. By type of activity - automata are divided into: information, control and computing.

Toinformation machines include a variety of reference tables, information boards in stadiums, alarm devices.

To control machines it is customary to attribute devices to control a certain process, including specifically: an elevator, a conveyor, a machine tool, a barrier.

To computing machines include microcalculators, computer processors and other devices that perform calculations.

However, strictly speaking, many automata are such complex systems that they are both computational, control, and informational automata.

2. Finite automata - from the point of view of informatics, these are automata, which are discrete information converters. These include transducers that contain a finite set of input and finite output signals, as well as a finite set of internal states

3. Digital machines- automata that converts digital information. In such an automaton, the input signals are given as a finite set of instantaneous symbols: their duration is so small that it can be neglected. For a fixed time, the input symbols are transformed, and the output is a jump transition from one state to another state.

4. Abstract automata - displaying a set of words in the input alphabet Xin set of output alphabet words Y.

The abstract automaton is:

~ Mathematical model,

~ Algorithm actions of some transformation of code sequences,

~ Law transformations of the input alphabet into the output one.

5. Synchronous and asynchronous automata. Depending on whether the input signal and the state change signal are received simultaneously or sequentially, automata are divided into synchronous and asynchronous automata.

In synchronous machines the duration of the input signals and the time of the transitions are coordinated with each other. They are used in computer systems, automated control systems, etc.

In asynchronous machines the duration of the input signals and the time of the transitions are not coordinated with each other. They depend on external sources - various events, and sampling interval is variable (for example, in combination locks). In asynchronous automata, the next change in the values ​​of input signals can occur only if the transient process caused by the previous change in these signals has ended.

6. Automata are divided into finite and infinite automata. If the classification is based on memory size, then the difference lies in whether the automaton has final or endless number of internal states.

Under the endless automaton is usually understood as a certain mathematical idealization of ideas about an automaton that has an infinite number of states. The memory of such an automaton can potentially grow indefinitely. For example, the famous Post and Turing abstract automata are infinite automata, but the computer itself or its individual parts are finite automata.

7. Automata are divided into deterministic and probabilistic automata. If the classification is based on random selection mechanism then a distinction is made between deterministic and probabilistic (stochastic) automata.

In deterministic automata the behavior and structure at each moment of time are uniquely determined by the current input information and the state of the automaton itself at the previous moment of time.

In probabilistic automata, this dependence is also associated with some random choice.

Probabilistic an automaton is a discrete information converter, the functioning of which at each moment of time depends only on the states of memory and is described by statistical laws.

8. Universal machine. In automata theory, it is proved that in order to perform various transformations of information, it is enough to construct universal automatic machine with the help of a program and appropriate coding, capable of solving any problems.

The mathematical model of a digital automaton with one input is given by five objects:

X- finite set of input symbols, input alphabet:

X \u003d (x 1 (t), x 2 (t), ..., x n (t));

Y- finite set of output symbols, output alphabet:

Y \u003d (y 1 (t), y 2 (t), ..., y n (t));

Q~ finite set of automaton states:

Q= (q 0 (t), q 1 (t), q 2 (t), …, q n (t)), q0- initial state;

δ(q, X) - the function of the transition of the automaton from one state to another: ( Q X x)®Q;

λ(q, X) ~ automaton output function: ( Q x X) ® Y.

So the state machine C=(X, Q, Y, δ, λ.) is determined by the recursive relations

q(0) = q 0 , q(t + I) = δ (g(t), x(t)), y(t) = λ (g(t), x(t)),

t is the discretized moment of time or is it the image of a monotonic function t:. T® N, and T - ordinary continuous time, N is the set of natural numbers.

All hours of work T is divided into a finite number of intervals, on the boundary of which the state of the automaton changes. At the same time, t(Г 0) shows the number of changes that have occurred before time Г 0 .

An example of discretization is the usual cinema: time is divided into intervals of 1/24s. The human eye perceives the following of discrete frames as continuous movement.

9. Synchronous automata are divided into Mealy automata and Moore automata. Depending on the way to organize the exit function synchronous machines are divided into Mealy machines ( automata of the first kind) and Moore automata (automata of the second kind).

In the Mili vending machines- output signal y(t) x(t) and state q(t- 1) the automaton at the previous moment of time (t- one). The mathematical model of such automata is the system of equations:

q(t) = δ (q(t-1), x(t)) and y(t) = λ (q(t-1), x(t)),

In Moore machines output signal y(t) uniquely determined by the input signal x(t) and state q(t) at a given time t. The mathematical model of such automata is the system:

q(t) = δ (q(t-1), x(t)) and y(t) = λ (q(t)),

In such automata, the output function depends only on the states of the automaton at a given time and does not depend on the input signal. Thus, the input string of such an automaton is read once from left to right, performing a character-by-character scan. At a certain point in time, the state machine is in some internal state, which changes after reading the next character. The new state can be characterized by the read symbol and the current state.

10. Combination automata– there are automata in which the output symbol does not depend on its state and is determined only by the current input symbols, i.e. in this automaton all states are equivalent. In such an automaton, the transition function is degenerate, it is fundamentally unimportant and unchanged during operation. Therefore, the minimal combinational automaton has only one state.

11 Boolean automata - there are automata whose input alphabet consists of 2 t binary length sets t, and the output is from 2 n binary sets of length P. For logical combinational automata, the exit function has the form of a system P logic functions from t variables.

Automata theory is a section of discrete mathematics that studies models of discrete information converters. Such converters are both real devices (computers, living organisms) and imaginary devices (axiomatic theories, mathematical machines). In essence, a finite state machine can be described as a device M , which has input and output channels, while at each of the discrete time moments, called clock moments, it is in one of the final states.

On the input channel at any time t =1, 2, ... to device M input signals arrive (from some finite set of signals). The law of state change to the next moment of time is set depending on the input signal and the state of the device at the current moment of time. The output signal depends on the state and the input signal at the current time (Fig. 1).

The state machine is a mathematical model of real discrete information processing devices.

state machine called the system A= (X , Q , Y , , ), where X , Q , Y are arbitrary non-empty finite sets, and and - functions, of which:

    lots of X ={a 1 , ..., a m ) is called input alphabet , and its elements are input signals , their sequences are in catchphrases ;

    lots of Q ={q 1 , ..., q n ) is called many states automaton, and its elements - states ;

    lots of Y ={b 1 , ..., b p ) is called output alphabet , its elements are output signals , their sequences are output words ;

    function : X Q Q called transition function ;

    function :X Q Y called output function .

In this way, (x , q )Q , (x , q )Y for  x X , q Q .

An imaginary device is associated with the state machine, which works as follows. It can be in a state from the set Q , receive signals from the set X and issue signals from a set Y .

2. Methods for defining a finite automaton

There are several equivalent ways to define abstract automata, three of which are: tabular , geometric and functional .

2.1. Table assignment of the machine

It follows from the definition of an automaton that it can always be defined by a table with two inputs containing t lines and P columns, where at the intersection of the column q and lines a function values ​​are worth (a i , q j ), (a i , q j ).

q

a

q 1

q j

q n

a 1

(a 1 , q 1), (a 1 , q 1)

(a 1 , q j ), (a 1 , q j )

(a 1 , q n ), (a 1 , q n )

a i

(a i , q 1), (a i , q 1)

(a i , q j ), (a i , q j )

(a i , q n ), (a i , q n )

a m

(a m , q 1), (a m , q 1)

(a m , q j ), (a m , q j )

(a m , q n ), (a m , q n )

2.2. Defining an automaton by a Moore diagram

Another way to specify a finite state machine is graphical, that is, using a graph. The automaton is represented as a labeled directed graph G(Q , D ) with many vertices Q and many arcs D ={(q j , (a i , q j ))| q j Q , a i X ), while the arc ( q j , (a i , q j )) is labeled with a pair ( a i , (a i , q j )). Thus, with this method, the states of the automaton are depicted by circles, in which the symbols of the states are entered q j (j = 1, …, n ). From each circle is carried out t arrows (directed edges) one-to-one corresponding to the characters of the input alphabet X ={a 1 , ..., a m ). Arrow corresponding to the letter a i X and leaving the circle q j Q , the pair ( a i , (a i , q j )), and this arrow leads to a circle corresponding to (a i , q j ).

The resulting drawing is called automaton graph or, Moore diagram . For not very complex automata, this method is more illustrative than tabular.