SlideShare a Scribd company logo
1 of 10
Chapter 11
Algebraic
Coding Theory
Single Error Detection
M = (1, 1, …, 1) is the m + 1 parity check matrix
for single error detection. If c = (0, 1, 0, …, 1) is
an n-bit codeword, then McT = 0 (use XOR for
addition). If c′ = c + e contains an error, then the
syndrome is:
Mc′T = M(c + e)T = McT + MeT = MeT = 1
This detects errors: 0 for none, 1 for an error.
1 1 1 1 1 1 1 1
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
M′ =
for double-error detection (optional)
the 3 x 7 parity check matrix for a
single-error correcting Hamming code
11.2
If c is a 7 bit code word, then McT = (0 0 0)T and Mc′T = MeT = the
syndrome for the error (e.g. try 0110011 → 0100011 on page 41). In
general, we can choose any parity check matrix for M, provided the
rows are linearly independent (otherwise the checks themselves are
redundant), and McT = 0. But, to correct a double-error, we must
have the property that the syndrome M(e1 + e2)T = Me1
T + Me2
T is
unique for every pair of columns (assuming e1 and e2 are single-error
vectors).
Single Error Correction / Double Error Detection
Polynomials
2[x] = {bnxn + … + b0 : n ≥ 0; bi = 0, 1; bn = 1}
Associate with each n-bit vector the corresponding polynomial, like
a generating function. Arithmetic operations (+, ×) apply to 2[x],
provided we do arithmetic on the coefficients in 2 (mod 2).
A polynomial P(x) is prime (or irreducible) if it cannot be factored
(over 2[x]) into lower-order polynomials. For example,
all are prime: x x + 1, x2 + x + 1, x3 + x + 1, x3 + x2 + 1
all composite: x2, x2 + 1, x2 + x, x3, x3 + 1, x3 + x2 + x + 1
Primitive roots are those that generate all non-zero elements.
degree coefficients leading
unless n = 0
11.5, 11.6, 11.7
Consider arithmetic in 2[x]/p(x) modulo an irreducible polynomial
p(x) of degree n. Since xn ≡ p(x) − xn mod p(x) there are no
polynomials of degree ≥ n. In fact, 2[x]/p(x) has 2n elements:
bn−1xn−1 + … + b0, which form a field, and hence there exists a
polynomial g(x) whose powers generate all the non-zero elements.
E.g. The powers of g(x) = x mod p(x) = x3 + x + 1 are:
1, x, x2, x + 1, x2 + x, x2 + x + 1, x2 + 1. Writing these as column
vectors of a matrix gives a rearranged Hamming code:
n = 3
2n = 8 = |2[x]/p(x)|
7 = 8 − 1 (# non-zero)
1 1 1 0 1 0 0 x2
0 1 1 1 0 1 0 x1
1 1 0 1 0 0 1 x0
x6 x5 x4 x3 x2 x1 x0
M =
11.8
Polynomial arithmetic
Polynomial Coding
Recall: Sent messages c should have McT = 0.
Fact: If c is a valid codeword, then c(x) ≡ 0 mod p(x).
Reason: McT = c(x) by definition of matrix
multiplication. And since the powers of x that make
up the columns of M are modulo p(x), McT = 0 
c(x) ≡ 0 mod p(x).
The syndrome of a received codeword c′ is Mc'T =
MeT, and similarly, the corresponding polynomial s(x)
has c'(x) − s(x) ≡ 0 mod p(x)  c'(x) ≡ s(x). If the ith
column matches, i.e. xi ≡ s(x), then that is the error
location, assuming e contains only one error.
Encode: Place message in columns 6, 5, 4, 3, and compute
b6x6 + b5x5 + b4x4 + b3x3 modulo p(x). Put remainder,
r(x) = b2x2 + b1x + b0, in the last columns.
b6 b5 b4 b3 b2 b1 b0
message checks
Decode: Divide received polynomial by p(x), and use the
remainder r(x) ≡ gi(x) to calculate syndrome i.
No error  i doesn’t exist, i.e. r(x) ≡ 0 mod p(x).
Example: 1 0 0 1  x6 + x3 + ?
/ /
1 0 0 1 1 1 0  x2 + 1 + x + 1 = x2 + x
11.8
Calculating the syndrome
McT = (x6x5 … x0)(c6c5 … c0)T = c6x6 + c5x5 +…+ c0x0
Example: If M is the Hamming matrix from
before (powers of x mod x3 + x + 1), and c =
0110110, then McT = x2 + x = s(x).
Strategy: divide s(x) by x repeatedly until we
reach the identity, x7 (Fermat’s little theorem).
Is there a less symbolically laborious way?
Shift registers
Encoding (MSB first)
1 0 0 0 → 1 1 0
1 0 0 → 0 1 1
1 0 → 1 0 0
1 → 0 1 0
1 0 1
1 1 1
1 1 0
0 1 1
Decoding (LSB
first)
x2 x1 x0 x-1
→
x2 + 1 =
x-1
Right shift = ÷
x
0 0 0 ← 1 0 0 1
0 0 1 ← 0 0 1
0 1 0 ← 0 1
1 0 0 ← 1
0 1 0
1 0 0
0 1 1
1 1 0
x3 x2 x1 x0
←
x3 = x +
1
left shift = ×
x
Add result to
message:
1001110
Introduce an error:
1000110 = x3 = x + 1
Find syndrome by
clocking and counting
until reaching 1.
Double error-correcting Code
Illustration: 15-bit Hamming code with 4 parity checks.
Verify that x4 + x + 1 is prime, and that x is primitive.
The resulting parity check matrix M1 is single error-
correcting, but x + x2 = x12 + x14 so double error-
correction is impossible.
Idea: pick another primitive generator x3 with matrix
M2. Let s1 = xi + xj = M1c′T be the first syndrome and
s2 = (x3)i + (x3)j = M2c′T be the second syndrome.
Then s2 = (xi)3 + (xj)3 = (xi + xj)((xi)2 + (xi)(xj) + (xj)2) =
s1[xixj + s1
2] So that xi + xj = s1 and xixj = s1
2 + s2/s1
11.11

More Related Content

What's hot

IITJEE -Mathematics 2011-i
IITJEE -Mathematics  2011-i IITJEE -Mathematics  2011-i
IITJEE -Mathematics 2011-i Vasista Vinuthan
 
IIT JEE - Mathematics 2009 i
IIT JEE  - Mathematics  2009  iIIT JEE  - Mathematics  2009  i
IIT JEE - Mathematics 2009 iVasista Vinuthan
 
March 20th, 2014
March 20th, 2014March 20th, 2014
March 20th, 2014khyps13
 
Factoring 15.3 and 15.4 Grouping and Trial and Error
Factoring 15.3 and 15.4 Grouping and Trial and ErrorFactoring 15.3 and 15.4 Grouping and Trial and Error
Factoring 15.3 and 15.4 Grouping and Trial and Errorswartzje
 
Polynomial functionsandgraphs
Polynomial functionsandgraphsPolynomial functionsandgraphs
Polynomial functionsandgraphsJerlyn Fernandez
 
7.2 Alg 2 exploring exponential models
7.2 Alg 2 exploring exponential models7.2 Alg 2 exploring exponential models
7.2 Alg 2 exploring exponential modelsswartzje
 
Review questions and answers
Review questions and answersReview questions and answers
Review questions and answersIIUM
 
Introduction to Functions
Introduction to FunctionsIntroduction to Functions
Introduction to FunctionsMelanie Loslo
 
Module 3 polynomial functions
Module 3   polynomial functionsModule 3   polynomial functions
Module 3 polynomial functionsdionesioable
 
Mid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer GraphicsMid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer GraphicsDrishti Bhalla
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at InfinityMatthew Leingang
 

What's hot (19)

Calc 6.1a
Calc 6.1aCalc 6.1a
Calc 6.1a
 
IITJEE -Mathematics 2011-i
IITJEE -Mathematics  2011-i IITJEE -Mathematics  2011-i
IITJEE -Mathematics 2011-i
 
Lemh105
Lemh105Lemh105
Lemh105
 
IIT JEE - Mathematics 2009 i
IIT JEE  - Mathematics  2009  iIIT JEE  - Mathematics  2009  i
IIT JEE - Mathematics 2009 i
 
Simplex algorithm
Simplex algorithmSimplex algorithm
Simplex algorithm
 
March 20th, 2014
March 20th, 2014March 20th, 2014
March 20th, 2014
 
Statistics Coursework Help
Statistics Coursework HelpStatistics Coursework Help
Statistics Coursework Help
 
Factoring 15.3 and 15.4 Grouping and Trial and Error
Factoring 15.3 and 15.4 Grouping and Trial and ErrorFactoring 15.3 and 15.4 Grouping and Trial and Error
Factoring 15.3 and 15.4 Grouping and Trial and Error
 
Polynomial functionsandgraphs
Polynomial functionsandgraphsPolynomial functionsandgraphs
Polynomial functionsandgraphs
 
7.2 Alg 2 exploring exponential models
7.2 Alg 2 exploring exponential models7.2 Alg 2 exploring exponential models
7.2 Alg 2 exploring exponential models
 
Review questions and answers
Review questions and answersReview questions and answers
Review questions and answers
 
Introduction to Functions
Introduction to FunctionsIntroduction to Functions
Introduction to Functions
 
Module 3 polynomial functions
Module 3   polynomial functionsModule 3   polynomial functions
Module 3 polynomial functions
 
Mid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer GraphicsMid point line Algorithm - Computer Graphics
Mid point line Algorithm - Computer Graphics
 
Bazinga game
Bazinga gameBazinga game
Bazinga game
 
Dual simplexmethod
Dual simplexmethodDual simplexmethod
Dual simplexmethod
 
Lesson 7: Limits at Infinity
Lesson 7: Limits at InfinityLesson 7: Limits at Infinity
Lesson 7: Limits at Infinity
 
Lar calc10 ch03_sec7
Lar calc10 ch03_sec7Lar calc10 ch03_sec7
Lar calc10 ch03_sec7
 
Mth 4108-1 a
Mth 4108-1 aMth 4108-1 a
Mth 4108-1 a
 

Similar to Chapter 11 (20)

Statistical Method In Economics
Statistical Method In EconomicsStatistical Method In Economics
Statistical Method In Economics
 
Linear regression
Linear regressionLinear regression
Linear regression
 
SAS Homework Help
SAS Homework HelpSAS Homework Help
SAS Homework Help
 
Probabilistic systems assignment help
Probabilistic systems assignment helpProbabilistic systems assignment help
Probabilistic systems assignment help
 
104newton solution
104newton solution104newton solution
104newton solution
 
Machine learning (10)
Machine learning (10)Machine learning (10)
Machine learning (10)
 
Module ii sp
Module ii spModule ii sp
Module ii sp
 
Interpolation techniques - Background and implementation
Interpolation techniques - Background and implementationInterpolation techniques - Background and implementation
Interpolation techniques - Background and implementation
 
QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...
QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...
QMC: Operator Splitting Workshop, Stochastic Block-Coordinate Fixed Point Alg...
 
stochastic processes assignment help
stochastic processes assignment helpstochastic processes assignment help
stochastic processes assignment help
 
Ecuaciones lineales 1
Ecuaciones lineales 1Ecuaciones lineales 1
Ecuaciones lineales 1
 
Probabilistic systems exam help
Probabilistic systems exam helpProbabilistic systems exam help
Probabilistic systems exam help
 
Es272 ch2
Es272 ch2Es272 ch2
Es272 ch2
 
Section5 stochastic
Section5 stochasticSection5 stochastic
Section5 stochastic
 
Binomial
BinomialBinomial
Binomial
 
Hamming codes
Hamming codesHamming codes
Hamming codes
 
Fundamental theorem of algebra
Fundamental theorem of algebraFundamental theorem of algebra
Fundamental theorem of algebra
 
Optimization tutorial
Optimization tutorialOptimization tutorial
Optimization tutorial
 
Taylor problem
Taylor problemTaylor problem
Taylor problem
 
Basic math including gradient
Basic math including gradientBasic math including gradient
Basic math including gradient
 

Recently uploaded

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Chapter 11

  • 2. Single Error Detection M = (1, 1, …, 1) is the m + 1 parity check matrix for single error detection. If c = (0, 1, 0, …, 1) is an n-bit codeword, then McT = 0 (use XOR for addition). If c′ = c + e contains an error, then the syndrome is: Mc′T = M(c + e)T = McT + MeT = MeT = 1 This detects errors: 0 for none, 1 for an error.
  • 3. 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 M′ = for double-error detection (optional) the 3 x 7 parity check matrix for a single-error correcting Hamming code 11.2 If c is a 7 bit code word, then McT = (0 0 0)T and Mc′T = MeT = the syndrome for the error (e.g. try 0110011 → 0100011 on page 41). In general, we can choose any parity check matrix for M, provided the rows are linearly independent (otherwise the checks themselves are redundant), and McT = 0. But, to correct a double-error, we must have the property that the syndrome M(e1 + e2)T = Me1 T + Me2 T is unique for every pair of columns (assuming e1 and e2 are single-error vectors). Single Error Correction / Double Error Detection
  • 4. Polynomials 2[x] = {bnxn + … + b0 : n ≥ 0; bi = 0, 1; bn = 1} Associate with each n-bit vector the corresponding polynomial, like a generating function. Arithmetic operations (+, ×) apply to 2[x], provided we do arithmetic on the coefficients in 2 (mod 2). A polynomial P(x) is prime (or irreducible) if it cannot be factored (over 2[x]) into lower-order polynomials. For example, all are prime: x x + 1, x2 + x + 1, x3 + x + 1, x3 + x2 + 1 all composite: x2, x2 + 1, x2 + x, x3, x3 + 1, x3 + x2 + x + 1 Primitive roots are those that generate all non-zero elements. degree coefficients leading unless n = 0 11.5, 11.6, 11.7
  • 5. Consider arithmetic in 2[x]/p(x) modulo an irreducible polynomial p(x) of degree n. Since xn ≡ p(x) − xn mod p(x) there are no polynomials of degree ≥ n. In fact, 2[x]/p(x) has 2n elements: bn−1xn−1 + … + b0, which form a field, and hence there exists a polynomial g(x) whose powers generate all the non-zero elements. E.g. The powers of g(x) = x mod p(x) = x3 + x + 1 are: 1, x, x2, x + 1, x2 + x, x2 + x + 1, x2 + 1. Writing these as column vectors of a matrix gives a rearranged Hamming code: n = 3 2n = 8 = |2[x]/p(x)| 7 = 8 − 1 (# non-zero) 1 1 1 0 1 0 0 x2 0 1 1 1 0 1 0 x1 1 1 0 1 0 0 1 x0 x6 x5 x4 x3 x2 x1 x0 M = 11.8 Polynomial arithmetic
  • 6. Polynomial Coding Recall: Sent messages c should have McT = 0. Fact: If c is a valid codeword, then c(x) ≡ 0 mod p(x). Reason: McT = c(x) by definition of matrix multiplication. And since the powers of x that make up the columns of M are modulo p(x), McT = 0  c(x) ≡ 0 mod p(x). The syndrome of a received codeword c′ is Mc'T = MeT, and similarly, the corresponding polynomial s(x) has c'(x) − s(x) ≡ 0 mod p(x)  c'(x) ≡ s(x). If the ith column matches, i.e. xi ≡ s(x), then that is the error location, assuming e contains only one error.
  • 7. Encode: Place message in columns 6, 5, 4, 3, and compute b6x6 + b5x5 + b4x4 + b3x3 modulo p(x). Put remainder, r(x) = b2x2 + b1x + b0, in the last columns. b6 b5 b4 b3 b2 b1 b0 message checks Decode: Divide received polynomial by p(x), and use the remainder r(x) ≡ gi(x) to calculate syndrome i. No error  i doesn’t exist, i.e. r(x) ≡ 0 mod p(x). Example: 1 0 0 1  x6 + x3 + ? / / 1 0 0 1 1 1 0  x2 + 1 + x + 1 = x2 + x 11.8
  • 8. Calculating the syndrome McT = (x6x5 … x0)(c6c5 … c0)T = c6x6 + c5x5 +…+ c0x0 Example: If M is the Hamming matrix from before (powers of x mod x3 + x + 1), and c = 0110110, then McT = x2 + x = s(x). Strategy: divide s(x) by x repeatedly until we reach the identity, x7 (Fermat’s little theorem). Is there a less symbolically laborious way?
  • 9. Shift registers Encoding (MSB first) 1 0 0 0 → 1 1 0 1 0 0 → 0 1 1 1 0 → 1 0 0 1 → 0 1 0 1 0 1 1 1 1 1 1 0 0 1 1 Decoding (LSB first) x2 x1 x0 x-1 → x2 + 1 = x-1 Right shift = ÷ x 0 0 0 ← 1 0 0 1 0 0 1 ← 0 0 1 0 1 0 ← 0 1 1 0 0 ← 1 0 1 0 1 0 0 0 1 1 1 1 0 x3 x2 x1 x0 ← x3 = x + 1 left shift = × x Add result to message: 1001110 Introduce an error: 1000110 = x3 = x + 1 Find syndrome by clocking and counting until reaching 1.
  • 10. Double error-correcting Code Illustration: 15-bit Hamming code with 4 parity checks. Verify that x4 + x + 1 is prime, and that x is primitive. The resulting parity check matrix M1 is single error- correcting, but x + x2 = x12 + x14 so double error- correction is impossible. Idea: pick another primitive generator x3 with matrix M2. Let s1 = xi + xj = M1c′T be the first syndrome and s2 = (x3)i + (x3)j = M2c′T be the second syndrome. Then s2 = (xi)3 + (xj)3 = (xi + xj)((xi)2 + (xi)(xj) + (xj)2) = s1[xixj + s1 2] So that xi + xj = s1 and xixj = s1 2 + s2/s1 11.11

Editor's Notes

  1. Do an example
  2. 11.4
  3. e2πi/n generates all roots of xn − 1 over . If n is prime, any root (except 1) will work.
  4. Demonstrate all arithmetic operations, and compute inverses.
  5. 11.8 end
  6. Use shift registers with feedback (Fig. 11.9-1). Clearly explain use of forward and reverse SRs! (see handwritten notes) Make new slides
  7. Finish by forming quadratic equation and showing that it can always be solved/satisfied for decoding/encoding respectively