The recursive
structure of a polar code leads in a natural way to an encoding algorithm for it.
We use the following algorithm to encode a polar code.
To encode a polar code of length
and dimension
we take a binary vector
with
positions fixed to 0 and
positions where the information bits are copied to.
Encoding is performed by calling Encode
and by outputting the resulting vector
.
Implement this function in Java and check that it gives the right encoding of the polar code
of length
that you have found in the previous question.
Jean-Pierre TILLICH
2019-03-08