Solution:
Solution:
The code given by
is
This means that
Hence
and
are given by the
generator matrices
Now,
can be viewed as a direct
sum of two 2-fold repetition codes, since the generator
matrix
can be written in block diagonal form, with the
blocks equal to
. Thus, a parity check matrix for
is also given in block diagonal form, where the blocks
are parity check matrices for the 2-fold repetition code.
However,
is a parity check matrix for the 2-fold by
example 1.2.2. Thus,
is self-dual and has a
parity check matrix,
, equal to
.
Now, let
By Exercise 4,
and
are generator matrices for
and
respectively.
Now, from
we also have that a parity check matrix for
is
because
is the direct sum of three 2-fold
repetition codes, and by the same argument as above,
is a block
diagonal matrix with
blocks. This means that
is a generator matrix
for
. Thus,
, and so by the above
work,
and
are generator matrices for
and
, respectively.
and
.
Solution:
Let
and
be
and
codes respectively, with
. The
rows of
are evidently in
since they are of the
form
or
with
and
. So
the span of the rows is in
. Given
in
we have
and
for some
.
Then the sizes of the matrices and vectors are such that
A linear dependence relation on the rows of
gives a dependence
relation on the rows of
since the only non-zero entries in
the first
columns of
are the rows of
. Since the rows
of
are independent the relation on the rows of
can not
involve the first
rows (the rows containing
). So the
dependence can only involve the bottom
rows. But this gives
a dependence relation on the rows of
since the only non-zero
entries in the last
rows of
are the rows of
.
Because the rows of
are independent the only possible linear
dependence relation on the rows of
is trivial. So
is a
generator matrix for
.
Notice that
has size
which is the appropriate size for a parity
check matrix of
(given that
above is a generating matrix
for
). Let
and
.
Then
Solution:
Suppose
is created using the
construction using
codes
. In
, we proved that
(defined in
) is a generator matrix for
. In
particular, according to our convention,
has full rank. Thus,
the dimension of
is the number of rows of
which is
. Thus
.
Let
and
be the parity check matrices for
and
, respectively. Let
denote the minimum weight of
.
We show
.
Recall that Corollary 1.4.14 gives us that a linear code has
minimum weight
if and only if its parity check matrix has a
set of
linearly dependent columns, and no set of
linearly dependent columns.
For the (
)
linear code, we have that the parity check matrix is given by
where
and
are the parity check matrices for the codes
and
, respectively. For convenience, we introduce the
block notation:
and
We make two observations:
We consider four cases.
Case (i)
. In this case, there is a set of
linearly dependent columns from the columns of
, and
the corresponding columns of block II give a set of
linearly
dependent columns of
. Moreover, there is no linearly
dependent set of fewer than
columns from block II.
Similarly, there is no linearly dependent set of fewer than
columns from
; there is no linearly dependent set of fewer
than
columns from block I. For this reason, any set of
columns from
including fewer than
columns from block I
cannot be linearly dependent. Hence,
is the smallest
integer
such that there is a set of
linearly dependent
columns from
, and no linearly dependent set with fewer than
columns;
, implying
in this case.
Case (ii)
. In this case, there is a
linearly dependent set of
columns from
, and no
linearly dependent set of columns from
with fewer than
elements. Hence, there is a linearly dependent set of
columns from block II of
, and no linearly dependent set of
columns from block II of
with fewer than
elements. Now,
since (via the first observation) any linearly dependent set of
columns from block I implies the existence of a set of
columns from
that is linearly dependent, any linearly
dependent set of columns from block I must have at least
elements. Similarly, any set of columns from
that includes
columns from block I must contain at least
columns from
block
. Hence,
is the smallest
for which there is a
set of
linearly dependent columns from
and no set of
linearly dependent columns from
contains less than
elements. Thus,
, so
.
Case (iii)
. In this case, there is a
linearly dependent set of
columns from
, say
. Then the corresponding columns of
taken
with the same coefficients and the columns
of
also with the same coefficients yields a
linear equation summing to zero amongst
columns of
.
Thus,
. Now suppose
is a minimal set of indices
representing a linearly dependent set of columns from
(that
is, no fewer than
columns are linearly dependent). Then
and
. Let
be the indices of columns
appearing in block I. Then
must represent linearly
dependent columns of
and so must be empty or of at least of
cardinality
. If
is empty, then
represents a linear dependence on the columns of
and so
, a contradiction. Since
, the relation
must be trivial on the columns of
. Since the relation is not
trivial in block I, the relation on block I must be exactly
countered on block II (otherwise there are nonzero coefficients on
the columns of
). Thus, the relation has
columns. Therefore,
. So
.
Case (iv)
. As there is a set of
columns of
which are linearly dependent, the corresponding
columns of
in block II are linearly dependent. So
. Any nontrivial relation on the columns of
which is
nontrivial on the columns of
must consist of at least
elements. From the arguments of Case (iii), we have seen
that any nontrivial relation on
which is trivial on the
columns of
must have at least
columns. Thus,
any nontrivial relation on the columns of
must have at least
columns involved. Therefore,
. Therefore,
, so
.