You are on page 1of 19

Lecture 3

¾ Introduction to Vector Space Theory

¾ Matrices

Block codes: basic definitions
• An alphabet is a discrete (usually finite) set of
example: B = { 0; 1} is the binary alphabet
• Definition: A block code of blocklength n over an
alphabet X is a nonempty set of n-tuples of
symbols from X.
• The n-tuples of the code are called codewords.
• Codewords are vectors whose components are
symbols in X.

Block codes: basic definitions

• Codewords of length n are typically generated

by encoding messages of k information bits
using an invertible encoding function.
• Number of codewords is M = 2k , Rate R = k/n
• The rate is a dimensionless fraction; the fraction
of transmitted symbols that carry information.
• A code with blocklength n and rate k/n is called
an (n; k) code

Linear Block Codes

c = mG
− −

c − code word (vector)

m − message word (vector)

G − Generator matrix

Vector Space-Introduction
• An n-dimensional vector has a form
x = ( x1, x2, x3, …, xn ) .
• The set Rn of n-dimensional vectors is a vector
• Any set V is called a vector space if it contains
objects that behave like vectors:
• ie, they add & multiply by scalars according to
certain rules. In particular, they must be closed
under vector addition and scalar multiplication.
• But addition & scalar multiplication need not be
defined conventionally!
• Let V denote the vector space.The addition on V
is vector addition.The scalar multiplication
combines a scalar from a Field F and a vector
from V. Hence V is defined over a field F.
• V must form a commutative group under addition
• For any element a in F and any element v in V,
a.V is an element in V.
• Distributive law- a.(u+v)=a.u+a.v
• Associative law- (a.b).v=a.(b.v)

Important vector spaces:
• R, R2, R3, Rn with usual + and scalar multn.
• Mmn ; the set of all m x n matrices
• Pn; all polynomials of degree ≤ n
• Consider a vector space over binary field
F2.Consider the sequence u=u0…un-1 where the
ui ‘s are from {0,1}.We can construct such 2n n-
tuples over F2.Let Vn denote this set. Vn is a
Vector space over F2

• A set W of vectors is a subspace of vector
space V if and only if W is a subset of V and
W is itself a vector space under the same
addition and scalar multiplication.
• For any two vectors u,v ε W, (u+v) ε W.
• For any element a in F and any u in W, a.u
must be in W.

To test if W is a Subspace
• We should, but need not, check all the properties
of a vector space in W: most hold because W’s
vectors are also in the bigger vector space V.
• But we must check closure in W: linear
combinations of vectors in W must also lie in W.
• This means the zero & additive inverses must
be in W too.

• Let u1,….,uk be a set of k vectors in V over
a field F. The set of all linear combinations
of u1,….,uk forms a subspace of V.
• The set of polys of degree 2 or less is a
subspace of the set of polynomials of degree
3 or less.
• The set of integers is not a subspace of R,
because the set of scalars includes fractions,
eg 1/2.
Spanning Sets &Linear Independence

• A set S = {u1,u2,.......,un} of vectors is said to span a

vector space V if every vector in V can be
expressed as a linear combination of the vectors in
• Ex:( x, y, z ) = x i + y j + z k, so every vector in R3 is
a linear combination of i, j & k.
• If any vector in a set can be expressed as a
linear combination of the others, we call the
set linearly dependent. If not, the set is linearly
Basis set
• A set of linearly independent vectors is a
basis for a Vector space V if each vector in V
can be expressed in one and only one way as a
linear combination of the set.
• In any Vector space or subspace there exists at
least one set B of linearly independent vectors
which span the space.
• The no. of vectors in the Basis of a Vector
space is the dimension of the Vector space.
• One example of a basis are the vectors
(1,0,…,0), (0,1,…,0),…, (0,0, …, 1).
Let u= (u0 , u1 ,.....un −1 ) and
v= (v0 , v1 , −1 )
be two n-tuples in Vn. We define the inner product(dot product) as
u.v= u0 v0 + u1v1 + ........ + un −1vn −1 where the multiplication and addition are
carried out in mod-2.. The inner product is a scalar. If u.v=0, then u and v
are said to be orthogonal to each other
The inner product has the following properties
(1) u.v=v.u
(2) u.(v+w)=u.v+u.W
A k x n matrix over F2 is a rectangular array with
k rows and n columns.
⎡ g00 g01 g02 ..... g0,n−1 ⎤
⎢ g g g ..... g ⎥
⎢ 10 11 12 1,n−1 ⎥

G=⎢ . . . . . ⎥
⎢ ⎥
⎢ . . . . . ⎥
⎢ gk −1,0 gk −1,1 gk −1,2 ..... gk −1,n−1 ⎥
⎣ ⎦

where each gij with 0 ≤ i ≤ k and 0 ≤ j ≤ n

is an element from the binary field F2.
• G is also represented by its k rows
g 0 , g 0 ,.....g k −1 as
⎡ g0 ⎤
⎢ g ⎥
⎢ 1 ⎥
G=⎢ . ⎥
⎢ ⎥
⎢ . ⎥
⎢⎣ g k −1 ⎥⎦

Each row of G is an n-tuple and each column is a k-tuple over F2.

• If k (with k ≤ n ) rows of G are linearly
independent, then the 2k linear combinations
of of these rows form a k dimensional
subspace of the vector space Vn of all the n-
tuples over F2. This subspace is called the
row space of G

• Elementary row operations will not change

the row space of G

• Let S be the row space of a k x n matrix G over
F2 whose rows are linearly independent. Let Sd be
the null space of S. Then the dimension of Sd is
n-k. Consider (n-k) linearly independent vectors
in Sd. These vectors span Sd. We can form an
(n-k) x n matrix H as
⎡ h0 ⎤ ⎡ h00 h01 h02 ..... h0,n −1 ⎤
⎢ h ⎥ ⎢ h h11 h12 ..... h1,n −1 ⎥⎥
⎢ 1 ⎥ ⎢ 10
H =⎢ . ⎥=⎢ . . . . . ⎥
⎢ ⎥ ⎢ ⎥
⎢ . ⎥ ⎢ . . . . . ⎥
⎢⎣ g n − k −1 ⎥⎦ ⎢⎣ hn − k −1,0 hn − k −1,1 hn − k −1,2 ..... hn − k −1,n −1 ⎥⎦
The row space of H is Sd
• Since each row gi is a vector in S and each
row hj of H is a vector in Sd, the inner
product of gi and hj must be zero. As the
row space S of G is the null space of the
row space Sd of H, S is called the null space
or dual space of H.

• For any k x n matrix G over F2, with k linearly
independent rows, there exists an (n-k) x n
matrix over the same field with (n-k) linearly
independent rows such that for any row gi in
G and any hj in H, gi.hj = 0. The row space of
G is the null space of H and vice versa.