SlideShare une entreprise Scribd logo
1  sur  24
Some error Detecting anDerror correcting coDeSapplication
Felicia FortFelicia Fort
proFeSSor Dr. mutungi
Senior preSentation
Department oF mathematicS anD
computer Science
april 22, 2010
12:30pm
table oF contenttable oF content
• Purpose
• Identifiers
– What is a Check Digit
– Why use Check Digits
• Introduction
– Error Correcting/ Detecting
– What is a code
– What is Linear Codes
• Advantaged/Disadvantages
• Encoding
• Decoding
• Conclusion
purpoSepurpoSe
Available information of error detecting, error correcting
codes and check-digit schemes as a way to show students
a practical application of mathematics and introduce them
to coding theory.
A message can become distorted through a wide range of
unpredictable errors.
• Humans
• Equipment failure
• Scratches in a magnetic tape
iDentiFierSiDentiFierS
• Social Security Number
• Vehicle Identification Number
• UPC (Bar Codes)
• ISBN
• U. S. Post Office Money Orders
• Zip Codes (12 digit)
• Credit Card Numbers
COMMON FEATURES:
•All of these Identifiers
contain a Check Digit,
except for Social Security
Numbers.
Why uSe check DigitS?Why uSe check DigitS?
Check Digit (1)- Redundancy which has been added to
the message (End of number) to detect or give
permission against noise
Check Digit (2)- A digit added to a number for the
purpose of detecting the sorts of errors humans
typically make on data entry.
• Machines can make errors.
– Transmission errors.
• People can make errors.
i.S.b.ni.S.b.n
international StanDarD bookinternational StanDarD book
numbernumber
• Form: L-PPPPP-BBBBB-C
• The ISBN is shown in four groups of
• numbers. The first number identifies the
• country, or language group, the second
• the publisher, the third the book, and the
• fourth is a check digit.
ISBN ANAlySISISBN ANAlySIS
• Advantages:
– This will catch all single digit errors and all
• transposition errors.
– It is not difficult to calculate.
• Disadvantages:
– It uses a “strange” character (X) to represent a
“digit” (ten).
ISBN ExAmplEISBN ExAmplE
• 0-1304-1717-?
10(0)+9(1)+8(3)+7(0)+6(4)+5(1)+4(7)+3(1)+2(7)
= 0 + 9 + 24 +0 + 24 + 5 +28 + 3 + 14
= 107/11 = 11 -8 = (3) Check Digit
• 0-1340-1717-?
= 0 + 9 + 24 + 28 + 0 + 5 +28 + 3 + 14
• 111 which is not a multiple of eleven.
Check
110 (mod 11) = 0
Check
110 (mod 11) = 0
ErrorSErrorS
• The general idea for achieving error detection
and correction is to add some extra data to a
message.
• Error detection is caused by noise during
transmission from: transmitter receiver.
• Error correction is the detection of errors.
10
FormulA For dEtEctINg ErrorFormulA For dEtEctINg Error
Let d2, d4, d6, d8, d10, d12, d14, d16 be all the even values
in the credit card number.
Let d1, d3, d5, d7, d9, d11, d13, d15 be all the odd values in
the credit card number.
Let n be the number of all the odd digits which have a value
that exceeds four
Credit card has an error if the following is true:
(d1 + d3 + d5 + d7 + d9 + d11 + d13 + d15) x 2 + n +
(d2 + d4 + d6 + d8 + d10 + d12 + d14 + d16)
0 mod(10)≠
11
dEtEct Error oN crEdIt cArddEtEct Error oN crEdIt cArd
d1
d2 d3 … d15 d16
n = 3
12
Now thE tEStNow thE tESt
(4 + 4 + 8 + 1 + 3 + 5 + 7 + 9) = 41
(5 + 2 + 1 + 0 + 3 + 4 + 6 + 8) x 2 + 3 = 61
41 + 61 = 102 mod (10) = 2
3
IntroductIon- What Is a code?IntroductIon- What Is a code?
• A code is defined as an n-tuple of q elements.
Where q is any alphabet.
• Ex. 1001 n=4, q={1,0}
• The most common code is when q={1,0}. This
is known as a binary code.
LInear codeLInear code
• Is a subspace of V(n, q), for some positive
integer n.
– Thus a subset C of V(n, q) is a Linear Code iff
• U + V ∈ C, for all u and v in C, and
• au ∈ C, for all u ∈ C, a ∈ GF(q).
• If C is a k-dimensional subspace of V(n ,q), then the
linear code C is called an [n, k]- code.
advantages/dIsadvantagesadvantages/dIsadvantages
of LInear codesof LInear codes
Advantages
– We can specify a linear [n, k] code by simply giving a basis of k
codeword's. To specify a non-linear code, we may have to list all the
codeword's.
Disadvantages
– The restriction to linear codes might be a restriction to weaker codes
than desired.
– Linear q-ary codes are not defined unless q is a prime number.
LInear codesLInear codes
encodIng LInear codesencodIng LInear codes
The generator matrix G provides a way to encode a
message
G = [Ik / A] where A=[aij] is a K x (n-k) matrix
decodIng LInear codesdecodIng LInear codes
Decoding operation involves a parity-check matrix.
C= {X∈V(n,q)/xHT
= 0}
send a messagesend a message
• Digital Communication System
Message
Source
user Decoder
Encoder Channel
exampLe: 7.6exampLe: 7.6
Let G= 1 1 1 0
2 0 1 1
Let C be the ternary linear code with generator matrix: Find a generator matrix for C in standard form, Find a parity-
check matrix for C in standard form, Use syndrome decoding to decode the received vectors
Let C be the ternary linear code with generator matrix: Find a generator matrix for C in standard form, Find a parity-
check matrix for C in standard form, Use syndrome decoding to decode the received vectors
R1
R2
2 x 4 Matrix Z3 = {0,1, 2}
1 1 1 0
0 -2 -1 1
G =
R1
-2R1 + R2---R2 G = -1R2 + R1------R1
1 0 -1 -1
0 1 2 1G =
-1≡ 2MOD 3 =2
1 0 2 2
0 1 2 1G =
G in Standard Form
G = I2 A = 2 2
2 1
2 X 4
K x N
-AT
In-kH = =
-2 -2 1 0
-2 -1 0 1
MOD 3
= 1 1 1 0
1 2 0 1
Parity-Check Matrix
Identify the Codeword’s:
1 1 1 0
2 0 1 1
λ1 (1,1,1,0) + λ2 (2,0,1,1) λ1, λ2 Є Ζ3 = { 0, 1, 2 }
Λ1= 0, Λ2 =0
Λ1 =0, λ2 = 1
Λ1= 0, λ2= 2
Λ1= 1, λ2= 0
Λ1= 1, λ2= 1
Λ1= 1, λ2= 2
Λ1= 2, λ2= 0
Λ1= 2, λ2= 1
Λ1= 2, λ2= 2
Distribute
Property: plug
in λ1,λ2
(0,0,0,0)
(2,0,1,1)
(1,1,1,0)
(0,1,2,1)
(2,1,0,2)
(2,2,2,0)
(1,2,0,1)
(0,2,1,2)
(1,0,2,2)
1
8
9
7
6
4
5
3
2
List of Codeword's of the ternary
(Z3) with generator matrix 1 1 1 1
2 0 1 1
(0,0,0,0)
(2,0,1,1)
(1,0,2,2)
(1,1,1,0)
(0,1,2,1)
(2,1,0,2)
(2,2,2,0)
(1,2,0,1)
(0,2,1,2)
3
3
3
3
3
3
3
3
Minimum Distance of this code =
smallest weight of any non-zero
codeword.
Minimum Distance = 3
Can detect 2 errors
Correct 1 error
2 x 4 4 x 1
1 1 1 0
1 2 0 1
2
0
1
1
=
2+0+1+0
2+0+0+1 = 3
3
= 0
0
3 MOD 3= 0
CodewordParity-Check
Matrix
= (2, 1, 0, 2)(2, 1, 0, 2) ЄЄ C.C.
Let’s say that the Result
(Sent Vector) was this
instead…. (0, 1, 0, 2)(0, 1, 0, 2) Due to noise
1 1 1 0
1 2 0 1
00
11
00
22
=
0+1+0+0
0+2+0+2 =
1
4 X
Receiver Detects
Error
(0000) (2011) (1022) (1110) (0121) (2102) (2220) (1201) (0212)
(1000) (0111) (2022) (2110) (1121) (0102) (0220) (2201) (1212)
(0100) (2111) (1122) (1210) (0221) (2202) (2020) (1001) (0012)
(0010) (2021) (1002) (1120) (0101) (2112) (2200) (1211) (0222)
(0002) (2010) (1021) (1112) (0120) (2101) (2222) (1200) (0211)
(0200) (2211) (1222) (1010) (0021) (2002) (2120) (1101) (0112)
(0020) (2001) (1012) (1100) (0111) (2122) (2210) (1221) (0202)
(0001) (2012) (1020) (1111) (0122) (2100) (2221) (1202) (0210)
(2000) (1011) (0022) (0110) (2121) (1101) (1220) (0201) (2212)
Syndrome Look-Up
Table
Coset Leaders
(0,1,0,20,1,0,2) – (1,0,0,0) = (-1,1,0,2) = (2,1,0,2)
-1MOD3= 2Received Vector - Coset Leader
ConClusionConClusion
• Error correcting codes make it possible to detect and correct
common errors in transmission.
• We have proven that different error coding schemes are
chosen depending on the types of errors expected, such as
Linear Coding.
• Using error correction codes, the transmitter encodes the
data by adding parity check information and sends the
encoded data through the transmission channel to the
receiver. The receiver uses the decoder to decode the
received data and to make corrections using the added parity
check information.
REFEREnCEs
• Gallian, J.A. (1991). The Mathematical of Identification Numbers. The College
• Mathematics Journal 22: (194-202).
• Gonzalez, Diego L. (2008). The Codes of Life: Error Detection and Correction Codes.
Springer Netherlands (379-394)
• Guiasu, S. (1977). Information Theory with Applications. McGraw-Hill, New York.
• Hamming, Richard. (1986). Error Correcting and Error Detecting Coding: Coding and
Information Theory, 2e, Prentice Hall (27)
• Hill, Raymond. (1986). A First Course in Coding Theory, Clarendon press, Oxford (1-59)
• Roman, Steven. (1997). Linear Codes. Introduction to Coding and Information Theory.
Fullerton, CA (163).
• Rzeszowska-Wolny, J. (1983). Is Genetic Code Error-Correcting? J. Theory. Biology. 104:
(701-702).
• Shannon, Claude. (1948). A Mathematical Theory of Communication, (1-20)
• Trappe, Wade. Lawrence C. Washington. (2002). Linear Codes-Error Correcting Codes.
Introduction to Cryptography with Coding Theory. Prentice Hall. Upper Saddle, New
Jersey (301-311).
• www.beachnet.com
• http://en.wikipedia.org/wiki/Linear_code
• www.ISBN.com
• http://en.wikipedia.org/wiki/check_digits
ACknowlEdgEmEnts
• God Almighty
• BC STEM Faculty
– Dr. Patrick Mutungi
– Mrs. Feresteh Zahed
– Ms. Gallon
– Ms. Counts
– Friends
QUESTIONSQUESTIONS

Contenu connexe

Tendances

Cse115 lecture02overviewofprogramming
Cse115 lecture02overviewofprogrammingCse115 lecture02overviewofprogramming
Cse115 lecture02overviewofprogrammingMd. Ashikur Rahman
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsSSE_AndyLi
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital ElectronicsPaurav Shah
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic GatesBala Ganesh
 
Declare Your Language (at DLS)
Declare Your Language (at DLS)Declare Your Language (at DLS)
Declare Your Language (at DLS)Eelco Visser
 
Name binding with scope graphs
Name binding with scope graphsName binding with scope graphs
Name binding with scope graphsEelco Visser
 
Octal to binary encoder
Octal to binary encoderOctal to binary encoder
Octal to binary encoderAjay844
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2WanNurdiana
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsSSE_AndyLi
 
Decoders
DecodersDecoders
DecodersRe Man
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018Fizaril Amzari Omar
 
Number system logic gates
Number system logic gatesNumber system logic gates
Number system logic gatesJaipal Dhobale
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bankmiraclebabu
 
DLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUBDLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUBRafin Rayan
 

Tendances (20)

Cse115 lecture02overviewofprogramming
Cse115 lecture02overviewofprogrammingCse115 lecture02overviewofprogramming
Cse115 lecture02overviewofprogramming
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
 
Decoders-Digital Electronics
Decoders-Digital ElectronicsDecoders-Digital Electronics
Decoders-Digital Electronics
 
EE8351 DLC
EE8351 DLCEE8351 DLC
EE8351 DLC
 
Chap iii-Logic Gates
Chap iii-Logic GatesChap iii-Logic Gates
Chap iii-Logic Gates
 
dld 01-introduction
dld 01-introductiondld 01-introduction
dld 01-introduction
 
Declare Your Language (at DLS)
Declare Your Language (at DLS)Declare Your Language (at DLS)
Declare Your Language (at DLS)
 
Name binding with scope graphs
Name binding with scope graphsName binding with scope graphs
Name binding with scope graphs
 
Digital Logic Design
Digital Logic Design Digital Logic Design
Digital Logic Design
 
Octal to binary encoder
Octal to binary encoderOctal to binary encoder
Octal to binary encoder
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital Systems
 
Decoders
DecodersDecoders
Decoders
 
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)PDT DC015 Chapter 2 Computer System 2017/2018 (f)
PDT DC015 Chapter 2 Computer System 2017/2018 (f)
 
PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
 
Number system logic gates
Number system logic gatesNumber system logic gates
Number system logic gates
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bank
 
07Decoders121
07Decoders12107Decoders121
07Decoders121
 
DLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUBDLD Presentation By Team Reboot,Rafin Rayan,EUB
DLD Presentation By Team Reboot,Rafin Rayan,EUB
 

Similaire à Error Detecting and Correcting Codes Applications

3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.pptAnnymus
 
Encoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabEncoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabSneheshDutta
 
Digital electronics-Introduction.pptx
Digital electronics-Introduction.pptxDigital electronics-Introduction.pptx
Digital electronics-Introduction.pptxSubrata Maiti
 
error_detection_correction.pptx
error_detection_correction.pptxerror_detection_correction.pptx
error_detection_correction.pptxssuser50f4fd1
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksNt Arvind
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel CodingDr. Sanjay M. Gulhane
 
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...Madhumita Tamhane
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and DecoderAmeer H Ali
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETSeshaVidhyaS
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.pptAshishChandrakar12
 
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTGROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTKrishbathija
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.pptWinterSnow16
 

Similaire à Error Detecting and Correcting Codes Applications (20)

3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.ppt
 
linear codes and cyclic codes
linear codes and cyclic codeslinear codes and cyclic codes
linear codes and cyclic codes
 
Encoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabEncoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlab
 
rs_1.pptx
rs_1.pptxrs_1.pptx
rs_1.pptx
 
Error Control coding
Error Control codingError Control coding
Error Control coding
 
Digital electronics-Introduction.pptx
Digital electronics-Introduction.pptxDigital electronics-Introduction.pptx
Digital electronics-Introduction.pptx
 
error_detection_correction.pptx
error_detection_correction.pptxerror_detection_correction.pptx
error_detection_correction.pptx
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
 
Understanding Reed-Solomon code
Understanding Reed-Solomon codeUnderstanding Reed-Solomon code
Understanding Reed-Solomon code
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
 
Unit-4.pptx
Unit-4.pptxUnit-4.pptx
Unit-4.pptx
 
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
Convolution codes - Coding/Decoding Tree codes and Trellis codes for multiple...
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and Decoder
 
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCETDigital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
Digital electronics(EC8392) unit- 1-Sesha Vidhya S/ ASP/ECE/RMKCET
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
Encoding in sc
Encoding in scEncoding in sc
Encoding in sc
 
Data links
Data links Data links
Data links
 
coding.pdf
coding.pdfcoding.pdf
coding.pdf
 
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTGROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.ppt
 

Plus de Felicia Fort, MBA

STEM 102- Presentation- Why Mathematics
STEM 102- Presentation- Why MathematicsSTEM 102- Presentation- Why Mathematics
STEM 102- Presentation- Why MathematicsFelicia Fort, MBA
 
Imc group presentation 11-20-2013 final
Imc  group presentation 11-20-2013 finalImc  group presentation 11-20-2013 final
Imc group presentation 11-20-2013 finalFelicia Fort, MBA
 
My Own Creative Business- "Idea!"
My Own Creative Business- "Idea!"My Own Creative Business- "Idea!"
My Own Creative Business- "Idea!"Felicia Fort, MBA
 
Family Feud Ethics presentation
Family Feud Ethics presentationFamily Feud Ethics presentation
Family Feud Ethics presentationFelicia Fort, MBA
 
Case 1 -Legalizing Marijuana in Washington, DC
Case 1 -Legalizing Marijuana in  Washington, DCCase 1 -Legalizing Marijuana in  Washington, DC
Case 1 -Legalizing Marijuana in Washington, DCFelicia Fort, MBA
 
Auditing of a Marketing Department- Capstone
Auditing of a Marketing Department- CapstoneAuditing of a Marketing Department- Capstone
Auditing of a Marketing Department- CapstoneFelicia Fort, MBA
 
CAPSIM- Baldwin Sensor Presentation - 1
CAPSIM- Baldwin Sensor Presentation - 1CAPSIM- Baldwin Sensor Presentation - 1
CAPSIM- Baldwin Sensor Presentation - 1Felicia Fort, MBA
 

Plus de Felicia Fort, MBA (9)

STEM 102- Presentation- Why Mathematics
STEM 102- Presentation- Why MathematicsSTEM 102- Presentation- Why Mathematics
STEM 102- Presentation- Why Mathematics
 
Imc group presentation 11-20-2013 final
Imc  group presentation 11-20-2013 finalImc  group presentation 11-20-2013 final
Imc group presentation 11-20-2013 final
 
My Own Creative Business- "Idea!"
My Own Creative Business- "Idea!"My Own Creative Business- "Idea!"
My Own Creative Business- "Idea!"
 
Human Resource Management
Human Resource Management Human Resource Management
Human Resource Management
 
Family Feud Ethics presentation
Family Feud Ethics presentationFamily Feud Ethics presentation
Family Feud Ethics presentation
 
Case 2 Ice Bucket Challenge
Case 2   Ice Bucket ChallengeCase 2   Ice Bucket Challenge
Case 2 Ice Bucket Challenge
 
Case 1 -Legalizing Marijuana in Washington, DC
Case 1 -Legalizing Marijuana in  Washington, DCCase 1 -Legalizing Marijuana in  Washington, DC
Case 1 -Legalizing Marijuana in Washington, DC
 
Auditing of a Marketing Department- Capstone
Auditing of a Marketing Department- CapstoneAuditing of a Marketing Department- Capstone
Auditing of a Marketing Department- Capstone
 
CAPSIM- Baldwin Sensor Presentation - 1
CAPSIM- Baldwin Sensor Presentation - 1CAPSIM- Baldwin Sensor Presentation - 1
CAPSIM- Baldwin Sensor Presentation - 1
 

Dernier

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
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
 
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
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
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
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
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
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 

Dernier (20)

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
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
 
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
 
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
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
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
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 

Error Detecting and Correcting Codes Applications

  • 1. Some error Detecting anDerror correcting coDeSapplication Felicia FortFelicia Fort proFeSSor Dr. mutungi Senior preSentation Department oF mathematicS anD computer Science april 22, 2010 12:30pm
  • 2. table oF contenttable oF content • Purpose • Identifiers – What is a Check Digit – Why use Check Digits • Introduction – Error Correcting/ Detecting – What is a code – What is Linear Codes • Advantaged/Disadvantages • Encoding • Decoding • Conclusion
  • 3. purpoSepurpoSe Available information of error detecting, error correcting codes and check-digit schemes as a way to show students a practical application of mathematics and introduce them to coding theory. A message can become distorted through a wide range of unpredictable errors. • Humans • Equipment failure • Scratches in a magnetic tape
  • 4. iDentiFierSiDentiFierS • Social Security Number • Vehicle Identification Number • UPC (Bar Codes) • ISBN • U. S. Post Office Money Orders • Zip Codes (12 digit) • Credit Card Numbers COMMON FEATURES: •All of these Identifiers contain a Check Digit, except for Social Security Numbers.
  • 5. Why uSe check DigitS?Why uSe check DigitS? Check Digit (1)- Redundancy which has been added to the message (End of number) to detect or give permission against noise Check Digit (2)- A digit added to a number for the purpose of detecting the sorts of errors humans typically make on data entry. • Machines can make errors. – Transmission errors. • People can make errors.
  • 6. i.S.b.ni.S.b.n international StanDarD bookinternational StanDarD book numbernumber • Form: L-PPPPP-BBBBB-C • The ISBN is shown in four groups of • numbers. The first number identifies the • country, or language group, the second • the publisher, the third the book, and the • fourth is a check digit.
  • 7. ISBN ANAlySISISBN ANAlySIS • Advantages: – This will catch all single digit errors and all • transposition errors. – It is not difficult to calculate. • Disadvantages: – It uses a “strange” character (X) to represent a “digit” (ten).
  • 8. ISBN ExAmplEISBN ExAmplE • 0-1304-1717-? 10(0)+9(1)+8(3)+7(0)+6(4)+5(1)+4(7)+3(1)+2(7) = 0 + 9 + 24 +0 + 24 + 5 +28 + 3 + 14 = 107/11 = 11 -8 = (3) Check Digit • 0-1340-1717-? = 0 + 9 + 24 + 28 + 0 + 5 +28 + 3 + 14 • 111 which is not a multiple of eleven. Check 110 (mod 11) = 0 Check 110 (mod 11) = 0
  • 9. ErrorSErrorS • The general idea for achieving error detection and correction is to add some extra data to a message. • Error detection is caused by noise during transmission from: transmitter receiver. • Error correction is the detection of errors.
  • 10. 10 FormulA For dEtEctINg ErrorFormulA For dEtEctINg Error Let d2, d4, d6, d8, d10, d12, d14, d16 be all the even values in the credit card number. Let d1, d3, d5, d7, d9, d11, d13, d15 be all the odd values in the credit card number. Let n be the number of all the odd digits which have a value that exceeds four Credit card has an error if the following is true: (d1 + d3 + d5 + d7 + d9 + d11 + d13 + d15) x 2 + n + (d2 + d4 + d6 + d8 + d10 + d12 + d14 + d16) 0 mod(10)≠
  • 11. 11 dEtEct Error oN crEdIt cArddEtEct Error oN crEdIt cArd d1 d2 d3 … d15 d16 n = 3
  • 12. 12 Now thE tEStNow thE tESt (4 + 4 + 8 + 1 + 3 + 5 + 7 + 9) = 41 (5 + 2 + 1 + 0 + 3 + 4 + 6 + 8) x 2 + 3 = 61 41 + 61 = 102 mod (10) = 2 3
  • 13. IntroductIon- What Is a code?IntroductIon- What Is a code? • A code is defined as an n-tuple of q elements. Where q is any alphabet. • Ex. 1001 n=4, q={1,0} • The most common code is when q={1,0}. This is known as a binary code.
  • 14. LInear codeLInear code • Is a subspace of V(n, q), for some positive integer n. – Thus a subset C of V(n, q) is a Linear Code iff • U + V ∈ C, for all u and v in C, and • au ∈ C, for all u ∈ C, a ∈ GF(q). • If C is a k-dimensional subspace of V(n ,q), then the linear code C is called an [n, k]- code.
  • 15. advantages/dIsadvantagesadvantages/dIsadvantages of LInear codesof LInear codes Advantages – We can specify a linear [n, k] code by simply giving a basis of k codeword's. To specify a non-linear code, we may have to list all the codeword's. Disadvantages – The restriction to linear codes might be a restriction to weaker codes than desired. – Linear q-ary codes are not defined unless q is a prime number.
  • 16. LInear codesLInear codes encodIng LInear codesencodIng LInear codes The generator matrix G provides a way to encode a message G = [Ik / A] where A=[aij] is a K x (n-k) matrix decodIng LInear codesdecodIng LInear codes Decoding operation involves a parity-check matrix. C= {X∈V(n,q)/xHT = 0}
  • 17. send a messagesend a message • Digital Communication System Message Source user Decoder Encoder Channel
  • 18. exampLe: 7.6exampLe: 7.6 Let G= 1 1 1 0 2 0 1 1 Let C be the ternary linear code with generator matrix: Find a generator matrix for C in standard form, Find a parity- check matrix for C in standard form, Use syndrome decoding to decode the received vectors Let C be the ternary linear code with generator matrix: Find a generator matrix for C in standard form, Find a parity- check matrix for C in standard form, Use syndrome decoding to decode the received vectors R1 R2 2 x 4 Matrix Z3 = {0,1, 2} 1 1 1 0 0 -2 -1 1 G = R1 -2R1 + R2---R2 G = -1R2 + R1------R1 1 0 -1 -1 0 1 2 1G = -1≡ 2MOD 3 =2 1 0 2 2 0 1 2 1G = G in Standard Form G = I2 A = 2 2 2 1 2 X 4 K x N -AT In-kH = = -2 -2 1 0 -2 -1 0 1 MOD 3 = 1 1 1 0 1 2 0 1 Parity-Check Matrix
  • 19. Identify the Codeword’s: 1 1 1 0 2 0 1 1 λ1 (1,1,1,0) + λ2 (2,0,1,1) λ1, λ2 Є Ζ3 = { 0, 1, 2 } Λ1= 0, Λ2 =0 Λ1 =0, λ2 = 1 Λ1= 0, λ2= 2 Λ1= 1, λ2= 0 Λ1= 1, λ2= 1 Λ1= 1, λ2= 2 Λ1= 2, λ2= 0 Λ1= 2, λ2= 1 Λ1= 2, λ2= 2 Distribute Property: plug in λ1,λ2 (0,0,0,0) (2,0,1,1) (1,1,1,0) (0,1,2,1) (2,1,0,2) (2,2,2,0) (1,2,0,1) (0,2,1,2) (1,0,2,2) 1 8 9 7 6 4 5 3 2 List of Codeword's of the ternary (Z3) with generator matrix 1 1 1 1 2 0 1 1 (0,0,0,0) (2,0,1,1) (1,0,2,2) (1,1,1,0) (0,1,2,1) (2,1,0,2) (2,2,2,0) (1,2,0,1) (0,2,1,2) 3 3 3 3 3 3 3 3 Minimum Distance of this code = smallest weight of any non-zero codeword. Minimum Distance = 3 Can detect 2 errors Correct 1 error
  • 20. 2 x 4 4 x 1 1 1 1 0 1 2 0 1 2 0 1 1 = 2+0+1+0 2+0+0+1 = 3 3 = 0 0 3 MOD 3= 0 CodewordParity-Check Matrix = (2, 1, 0, 2)(2, 1, 0, 2) ЄЄ C.C. Let’s say that the Result (Sent Vector) was this instead…. (0, 1, 0, 2)(0, 1, 0, 2) Due to noise 1 1 1 0 1 2 0 1 00 11 00 22 = 0+1+0+0 0+2+0+2 = 1 4 X Receiver Detects Error (0000) (2011) (1022) (1110) (0121) (2102) (2220) (1201) (0212) (1000) (0111) (2022) (2110) (1121) (0102) (0220) (2201) (1212) (0100) (2111) (1122) (1210) (0221) (2202) (2020) (1001) (0012) (0010) (2021) (1002) (1120) (0101) (2112) (2200) (1211) (0222) (0002) (2010) (1021) (1112) (0120) (2101) (2222) (1200) (0211) (0200) (2211) (1222) (1010) (0021) (2002) (2120) (1101) (0112) (0020) (2001) (1012) (1100) (0111) (2122) (2210) (1221) (0202) (0001) (2012) (1020) (1111) (0122) (2100) (2221) (1202) (0210) (2000) (1011) (0022) (0110) (2121) (1101) (1220) (0201) (2212) Syndrome Look-Up Table Coset Leaders (0,1,0,20,1,0,2) – (1,0,0,0) = (-1,1,0,2) = (2,1,0,2) -1MOD3= 2Received Vector - Coset Leader
  • 21. ConClusionConClusion • Error correcting codes make it possible to detect and correct common errors in transmission. • We have proven that different error coding schemes are chosen depending on the types of errors expected, such as Linear Coding. • Using error correction codes, the transmitter encodes the data by adding parity check information and sends the encoded data through the transmission channel to the receiver. The receiver uses the decoder to decode the received data and to make corrections using the added parity check information.
  • 22. REFEREnCEs • Gallian, J.A. (1991). The Mathematical of Identification Numbers. The College • Mathematics Journal 22: (194-202). • Gonzalez, Diego L. (2008). The Codes of Life: Error Detection and Correction Codes. Springer Netherlands (379-394) • Guiasu, S. (1977). Information Theory with Applications. McGraw-Hill, New York. • Hamming, Richard. (1986). Error Correcting and Error Detecting Coding: Coding and Information Theory, 2e, Prentice Hall (27) • Hill, Raymond. (1986). A First Course in Coding Theory, Clarendon press, Oxford (1-59) • Roman, Steven. (1997). Linear Codes. Introduction to Coding and Information Theory. Fullerton, CA (163). • Rzeszowska-Wolny, J. (1983). Is Genetic Code Error-Correcting? J. Theory. Biology. 104: (701-702). • Shannon, Claude. (1948). A Mathematical Theory of Communication, (1-20) • Trappe, Wade. Lawrence C. Washington. (2002). Linear Codes-Error Correcting Codes. Introduction to Cryptography with Coding Theory. Prentice Hall. Upper Saddle, New Jersey (301-311). • www.beachnet.com • http://en.wikipedia.org/wiki/Linear_code • www.ISBN.com • http://en.wikipedia.org/wiki/check_digits
  • 23. ACknowlEdgEmEnts • God Almighty • BC STEM Faculty – Dr. Patrick Mutungi – Mrs. Feresteh Zahed – Ms. Gallon – Ms. Counts – Friends