Question: Counting sequences in a language or code. We consider a language or code with an alphabet of n symbols 1 , 2 , . .
Counting sequences in a language or code. We consider a language or code with an
alphabet of n symbols n A sentence is a finite sequence of symbols, k km
where ki in n A language or code consists of a set of sequences, which we will
call the allowable sequences.
A language is called Markov if the allowed sequences can be described by giving the
allowable transitions between consecutive symbols. For each symbol we give a set
of symbols which are allowed to follow the symbol. As a simple example, consider
a Markov language with three symbols Symbol can be followed by or ;
symbol must be followed by ; and symbol can be followed by or The sentence
is allowable ie in the language; the sentence is not allowable ie
not in the language
To describe the allowed symbol transitions we can define a matrix A in Rnn by
Aij
if symbol i is allowed to follow symbol j
if symbol i is not allowed to follow symbol j
a Let B Ak Give an interpretation of Bij in terms of the language.
b Consider the Markov language with five symbols and the following
transition rules:
must be followed by or
must be followed by or
must be followed by
must be followed by or or
must be followed by or
Find the total number of allowed sentences of length Compare this number to
the simple code that consists of all sequences from the alphabet ie all symbol
transitions are allowed
In addition to giving the answer, you must explain how you solve the problem.
Do not hesitate to use Matlab.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
