Codings
[32/100%]A coding scheme from the alphabet into the alphabet is given by: . Find the sets of codes for the following words:
abaabac;
bacbbaccab;
aabcabccaab;
abcbbaabc.
A coding scheme from the alphabet into the alphabet is given by: . Prove that the word can be encoded in ways, where is the corresponding Fibonacci number.
Let the language over the alphabet consist of all words that begin with and contain a number of symbols that is a multiple of three. The homomorphism is given by the equalities , . Determine which of the following three words belong to the preimage of the language under the homomorphism :
;
;
.
Let the language over the alphabet consist of all words that begin with and contain the substring . Which of the following phrases defines the language , the image of under the following homomorphism ?
All words over the alphabet beginning with 0101, with length divisible by 4.
All words of even length over the alphabet beginning with 0101.
All words of even length over the alphabet beginning with 0101, in which every second symbol is a one and which contain the substring 1111.
All words over the alphabet beginning with 0101, in which the symbols at even positions are ones and which contain the substring 1111.
Let the language over the alphabet consist of all words that end with and contain the substring . Which of the following phrases defines the language , the image of under the following homomorphism ?
All words over the alphabet ending with 10, with length 12 or more.
All words of even length over the alphabet containing the substring 0000.
All words of even length over the alphabet ending with 10, in which every second symbol is a zero.
All words over the alphabet ending with 10, in which every second symbol is a zero and which contain the substring 0000.
All words of even length over the alphabet ending with 10, in which every sixth symbol is a zero and which contain the substring 0000.
A coding scheme from the alphabet into the alphabet is given by: . Find the results of encoding the following languages, represented by regular expressions:
;
;
;
.
A coding scheme from the alphabet into the alphabet is given by: . Find the results of encoding the following languages, represented by regular expressions:
;
;
;
.
Let a deterministic finite automaton be given, with program , together with a homomorphism , for which , . Which of the following three automata recognize the homomorphic image ?
;
;
.
The programs of the automata are given by the tables in Fig. 32 (a dash means the absence of the corresponding transition).
Given a deterministic finite automaton (Fig. 33) recognizing some language . Construct a nondeterministic finite automaton recognizing the language for the coding schemes from Problems
484
485
Fig. 33: Automaton from Problem 487.
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the image of the language
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the image of the language
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the language for the language
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the language for the language
L=\left\{ w: w \text{ ends in } 01and contains an even number of ones.
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the preimage of the language
Let the homomorphism be defined by the equalities .
Construct a deterministic finite automaton that recognizes the language for the language
Prove that any encoding operation for a language can be represented as a superposition of the preimage of a homomorphism and a homomorphism for some and .
Let us define the cylindrification operation, which is inverse to 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 an automatic language the language is also an automatic language. Propose a procedure for rebuilding an automaton recognizing into an automaton recognizing .
Show that if the homomorphism is prefix-free, then the result of the inverse encoding can be computed by a finite transducer. We assume may be anything if .
Using the Markov criterion, prove that with the aid of the coding schemes from Problems 484 and 485, every word can be encoded in at most one way.
Using the Markov criterion, determine whether, for the coding schemes from Problems 484 and 485, the original word can be uniquely recovered from the code of a word.
Construct the coding graph for the first six code words of Morse code: ; .
Using the Markov criterion, check whether the following homomorphism is unambiguous: , . If not, find a word that cannot be uniquely decoded.
Using the Markov criterion, check whether the following homomorphism is unambiguous: , . If not, find a word that cannot be uniquely decoded.
Prove that prefix-free homomorphisms are unambiguous, using the Markov criterion.
Using the Huffman method, construct optimal binary encodings for the (Russian) words
"каракатица" (cuttlefish),
"параллелепипед" (parallelepiped),
"телеаппаратура" (television equipment),
"индивидуальность" (individuality),
"перераспределение" (redistribution)
"обороноспособность" (defense capability)
"стронгилоцентротус" (Strongylocentrotus)
"тартароблатта" (Tartaroblatta).
Determine the length of the resulting word codes. Compute how much shorter the result of optimal encoding is compared to a uniform binary encoding, that is, when the codes of all symbols have the same length.
Construct finite transducers performing the decoding from Problem 503: using the Huffman method, construct optimal binary encodings for the words
"каракатица",
"параллелепипед",
"телеаппаратура",
"индивидуальность",
"перераспределение"
"обороноспособность"
"стронгилоцентротус"
"тартароблатта".
By induction on the construction, prove that for a binary Huffman code, the sum in the Kraft-McMillan inequality is exactly equal to one.
Prove that for any optimal binary homomorphism, the sum in the Kraft-McMillan inequality is exactly equal to one. Demonstrate that for non-binary homomorphisms this may fail.
Let the frequencies of the symbols , be equal. Prove that
in any optimal homomorphism the lengths of the code words differ by no more than 2;
there exists an optimal homomorphism in which the lengths of the code words differ by no more than 1;
in any optimal binary homomorphism the lengths of the code words differ by no more than 1.
We need to construct an unambiguous binary homomorphism from the alphabet . For certain reasons, for the symbols it has been decided to use code words of lengths 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 .
We need to construct an optimal binary homomorphism from the alphabet . It is known that the first three symbols occur equally often, while the rest occur much more rarely, but also with equal frequency.
Let be a coding scheme from the alphabet into itself, and let be an automatic language over the alphabet . Prove that the language is also automatic:
Thus contains the codes of words from that can be encoded, together with all words from that cannot be encoded.