Finite Automata: Transducers and Recognizers
[25/100%]A finite transducer is defined as follows: , and the program is given by the table in Fig. 23.
Find the result of the transducer operating on the word 010100.
On what input will output the result APAPAT?
A finite transducer is defined as follows: , and the program is given by the table in Fig. 23. This transducer subtracts some constant from the input number written in binary, that is, when it outputs the number in binary. What is this constant ? The digits in the binary representation of the numbers go from least to most significant, that is, the number ten looks like this: 0101.
A change-making machine has a slot for inserting coins and a hopper for dispensing them. The machine accepts coins of denominations 1, 2, and 10 rubles and makes change in 5-ruble coins. The display shows the amount already inserted, and as soon as the amount becomes sufficient, the machine immediately dispenses the required number of 5-ruble coins.
Construct a finite transducer modeling the operation of this machine. Determine the input and output alphabets and construct its program.
A coffee vending machine has a slot for receiving coins, a button whose press, once a sufficient amount has been paid, dispenses the coffee, and a hopper through which it dispenses change to the buyer. The machine accepts coins of denominations 1, 2, and 5 rubles. A cup of coffee costs 8 rubles. While the amount received is insufficient, a red light is on. If the amount received by the machine becomes greater than or equal to 8 rubles, then a green light turns on, and after the button is pressed the machine pours the coffee and, if needed, dispenses change using the smallest number of coins. If the machine receives a coin while the green light is on, it immediately returns it.
Construct a finite transducer modeling the operation of this machine. Determine the input and output alphabets and construct its program.
An electronic clock has a display showing hours, minutes, and seconds, along with two control buttons. The first button switches the clock from normal mode into time-setting mode — first into hour-setting, then minute-setting, then second-setting, and then returns it to normal mode. The second button does nothing in normal mode, while in setting mode pressing it increments by one the number of hours, minutes, or seconds currently being set, respectively.
Construct a finite transducer that models the operation of the clock. Its input consists of signals from presses of the two buttons, and its output consists of signals for changing the mode and incrementing the corresponding number. Draw the diagram of the transducer.
Fig. 24: Automaton programs from Problems 439, 440, and 441.
Construct a finite transducer that multiplies a number in binary notation by 3. The digits are written in order of increasing place value (as in Problem 432 on p. 129).
Construct a finite transducer that performs integer division of a number in decimal notation by 3. The digits are written in order of decreasing place value (in the "usual" order).
Determine which languages can be recognized by deterministic finite automata with alphabet and state set .
Let , and let the transition function of the finite automaton be given by the table shown in Fig. 24. Determine which of the following three words are recognized by the automaton ,
The language consists of all words that begin with the letter and contain a number of letters that is a multiple of three. Determine which of the following three deterministic finite automata recognize the language , whose programs are given by the table shown in Fig. 24.
The components of the finite automaton are , and the program is given by the table in Fig. 24. Prove that the automaton recognizes the language consisting
precisely of those words in the alphabet that end with the fragment .
Prove that the automaton shown in Fig. 25 recognizes the language consisting of all words that end in and do not contain .
Fig. 25: Automaton from Problem 442.
By induction on the length of the word , prove the following statement: if and only if there is a path in from to carrying .
Construct deterministic finite automata that recognize the following languages over the alphabet :
;
;
;
.
Construct a deterministic finite automaton that verifies the correctness of addition. The input is a sequence of "three-story" symbols, in which the top level holds a digit of the first addend, the middle level a digit of the second addend, and the bottom level a digit of the proposed sum. The automaton must accept the word if the result of the addition written on the bottom level is correct. The digits of all the numbers are written in order of increasing place value.
Construct deterministic finite automata recognizing the following languages over the alphabet :
— all words in which the fourth position from the end is 1;
— all words that contain the substrings 111 and 010 and do not contain the substring 001;
— all words ending in 10, 11, or 01.
Construct a deterministic finite automaton with alphabet that accepts only those words which are true DNFs.
Two languages are given over the alphabet :
Construct deterministic finite automata and recognizing the languages and , respectively.
Construct the product of these automata and determine its sets of accepting states , and , for recognizing the languages , respectively.
Let be a nondeterministic finite automaton, where .
Determine which of the following three deterministic automata are equivalent to :
.
, .
.
Using the determinization procedure, construct deterministic automata equivalent to the following nondeterministic finite automata with alphabet :
with program
with program .
Let be a nondeterministic finite automaton, in which , .
Determine which of the following words are recognized by the automaton .
Determinize .
Determine which language recognizes.
Construct a simpler variant of a deterministic automaton recognizing the same language.
Let be a nondeterministic finite automaton, where , and is defined in the table in Fig. 26 on the facing page (a dash means the absence of the corresponding transitions).
Determine which of the following words are recognized by the automaton .
| 0 | 1 | ||
|---|---|---|---|
| - | - | ||
| - | - | ||
| - | |||
| - | |||
| - | |||
| - | - | - | |
| : Fig. 26: Program of the automaton from Problem 452. |
Prove that the automaton recognizes the following language
Construct a deterministic finite automaton equivalent to .
Apply the determinization procedure and construct a deterministic automaton equivalent to the nondeterministic finite automaton shown in Fig. 27.
Fig. 27: Automaton from Problem 453.
The language over the alphabet consists of all words in which at least one letter of the alphabet is missing.
Construct a nondeterministic automaton with states recognizing .
Prove that no deterministic automaton with fewer than states can recognize .
A nondeterministic finite automaton over the alphabet with states and set of accepting states is shown in Fig. 28.
Fig. 28: Automaton from Problem 455.
Let be the automaton obtained from via the determinization procedure. Prove that
for any state of the automaton there exists a word that takes the initial state to ;
for any states , of the automaton there exists a word that takes one of the states or to some accepting state, and the other to a non-accepting one;
there is no deterministic finite automaton that would be equivalent to and have fewer than states.