Codings. Non-Automatic Languages
[19/100%]Given the following coding scheme from the alphabet to the alphabet . Find the sets of codes for the following words:
abaabac;
bacbbaccab;
aabcabccaab;
abcbbaabc.
Given the following coding scheme from the alphabet to the alphabet . Find the results of encoding the following languages, represented by regular expressions:
;
;
;
.
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the language for the language .
Let us define the operation of cylindrification, which is the inverse of the projection operation. Let be the projection of the alphabet onto the alphabet . For any language , define its cylindrification to the alphabet as the language
Show that for a regular language the language is also regular. Propose a procedure for rebuilding an automaton recognizing into an automaton recognizing .
Construct the coding graph for the first six Morse code words.
Using Markov's criterion, determine whether the homomorphism is uniquely decodable: . If not, find a word that cannot be uniquely decoded.
Prove, using Markov's criterion, that prefix-free homomorphisms are uniquely decodable.
Prove that the homomorphism , constructed in the proof of Lemma 128 on p. 354, is prefix-free.
Lemma 128: Suppose each symbol occurs times in the word , and and are the two rarest symbols, with the smallest and . Let be an optimal binary homomorphism for the word (the word with all occurrences of replaced by ). Then an optimal binary homomorphism for is given by for .
In the proof (by contradiction), assuming is not optimal produces an optimal homomorphism with for some , from which the homomorphism for the word is constructed by for .
Using the Huffman method, construct optimal binary encodings for the words
«каракатица»,
«параллелепипед»,
«телеаппаратура»,
«индивидуальность»,
«перераспределение»
«обороноспособность»
«стронгилоцентротус»
«тартароблатта».
Determine the length of the resulting word codes. Calculate how much shorter a result the optimal encoding gives compared to a uniform binary encoding, that is, when the codes of all symbols have the same length.
Construct finite transducers that perform the decoding from Problem 269.
(a) from problem 269;
(b) from problem 269.
By induction on construction, prove that for a binary Huffman code the sum in the Kraft-McMillan inequality is exactly equal to one.
We need to construct a uniquely decodable binary homomorphism from the alphabet . For certain reasons, it has been decided to use code words of lengths for the symbols respectively. It is known that the average frequencies of the symbols and are and respectively. Find the optimal lengths of the code words for and .
The reversal of a word for , is the word . Show that for a regular language its reversal — the language — is also regular.
Let be a regular language over the alphabet . Prove that the following languages are also regular:
;
;
;
;
;
;
.
Let be a regular language over the alphabet , and let be regular languages over the alphabet . Prove that the language , obtained from the words of by replacing each letter with some word from , is also regular. Thus,
Prove that the following languages over the alphabet are not regular:
the set of all words in which there are 3 more letters than letters ;
;
;
;
.
Let be a finite set of variables, . Then a -expression is a word over the alphabet defined inductively: it is either a variable , or « », or « », where , and are -expressions. For example, the words « , « , « are -expressions, while the words « , « and « ( are not -expressions. Prove that the set of -expressions over the alphabet is not regular.
Above, in Problem 243 on page 310, an automaton was constructed that checks the correctness of binary addition. Prove that no such automaton exists for the operation of binary multiplication. More precisely, the following language over the alphabet of three-tier symbols is not regular:
\begin{array}{r} \left\{ \llbracket \left[\begin{smallmatrix} x_{1} \\ y_{1} \\ z_{1} \end{array}x_n y_n z_n : x_i, y_i, z_i 0,1 for i=1, , n and z_n z_1 is the product of the binary numbers x_n x_1 and y_n y_1.
Prove that the following language over the alphabet is not regular: