SlideShare a Scribd company logo
1 of 15
Download to read offline
Carc 02.04
alessandro.bogliolo@uniurb.it
02. Information theory
02.04. Special Encodings
• Error models
• Error detection
• Error correction
• Parity bits
• Hamming codes
Computer Architecture
alessandro.bogliolo@uniurb.it
Carc 02.04
alessandro.bogliolo@uniurb.it
Error model
• Independent errors - error probability per bit p
• Error probability per word
(1)
• Multiple-error probability
np)p(p n
word  11
nn
word
n
word
n
word
pp
n
n
)n(p
...
)p(op
)n(n
)p(p
n
)(p
)p(onp)p(p
n
)(p

























2222
1
2
1
1
2
2
1
1
1
Carc 02.04
alessandro.bogliolo@uniurb.it
Detection/correction target
• Multiple errors are much less likely than single
errors
• The minimum target for error detection/correction
are single errors per word
• No encodings can detect/correct errors of any
multiplicity
Carc 02.04
alessandro.bogliolo@uniurb.it
Hamming distance
• Hamming distance between two words w1 and w2
dH(w1,w2)
• Hamming distance of a code: minimum Hamming
distance between pairs of code words
• Irredundant codes (using the minimum number of
bits) have Hamming distance dH(code)=1
 )w,w(dmin)(d H
w,w
H 21code
code21 

Carc 02.04
alessandro.bogliolo@uniurb.it
Detection/correction requirements
• If dH(w1,w2)=1, a single error may transform w1 in w2
• If w1 and w2 belong to the same code, the error cannot be
detected nor corrected, thus impairing reliability
• The minimum Hamming distance required to detect up to e
errors per word is dH(code)=e+1
• The minimum Hamming distance required to correct up to
e errors per word is dH(code)=2e+1
Carc 02.04
alessandro.bogliolo@uniurb.it
Code classification
• Error detecting codes (e-EDC)
• e errors transform any code word in a non-code word
• Error correcting codes (e-ECC)
• e errors transform any code word in a non-code word that is closer to
the original word than to any other code word
• Any e-ECC is also 2e-EDC
• Any code with dH > 1 is a redundant code
• A n-bit redundant code is called separable if each codeword
is composed of:
• r information bits (belonging to an irredundant encoding)
• m control bits (added to increase the Hamming distance between
the codewords)
n=r+m
Carc 02.04
alessandro.bogliolo@uniurb.it
Replication codes
• Simple separable codes with the desired Hamming
distance dH can be obtained by replicating dH times
an irredundant code
• Error detection technique
• bit-wise comparison
• Error correction technique
• bit-wise majority voting
n = dHr = r + (dH-1)r
m = (dH-1)r
Carc 02.04
alessandro.bogliolo@uniurb.it
Parity codes
• Parity bit: control bit computed in such a way that
the codeword (or a subset of its bits) contains an
even number of 1’s
• Parity code: separable code obtained by adding
parity control bits to an irredundant code
• 1-EDC parity code: code with m=1 using a single
parity bit computed over all the bits of the
codeword
• Detection technique:
• Parity test of the number of 1’s in the word
Carc 02.04
alessandro.bogliolo@uniurb.it
Performance of parity code
• Given:
- p error probability per bit
- L original length of a bit stream to be encoded
- r size of a words (chunk of the bit stream)
- We can compute:
- p_c = 1-p complement of p
- n = r+1 size of a codeword
- P_w_correct = (1-p)^n
- P_w_error = 1-P_w_correct
- P_w_1error = n*p*(1-p)^(n-1)
- P_w_Merror = P_w_error – P_w_1error
Carc 02.04
alessandro.bogliolo@uniurb.it
Performance of parity code
• We can also compute:
- N_words0 = L/r
- N_reTx = P_w_1error / (1-P_w_1error)
- N_words = N_words0 * (1+N_reTx)
- L_total = N_words * n
- The value of r (chunk length) can be decided in order
to optimize the performance of the code, expressed
in terms of:
- Overhead = L_total / L - 1
- Failure prob = P_w_Merror
Carc 02.04
alessandro.bogliolo@uniurb.it
0,000001
0,00001
0,0001
0,001
0,01
0,1
1
10
0 100 200 300
Chunk length (r)
Failure probability
Overhead
0
0,2
0,4
0,6
0,8
1
1,2
0 100 200 300
Chunk length (r)
Failure probability
Overhead
Performance of parity code with
retransmission
Carc 02.04
alessandro.bogliolo@uniurb.it
dH of Parity codes
• A single parity bit guarantees dH=2
• Parity codes with dH>2 can be obtained by using
more than 1 parity bits
• The configuration of all parity bits is called
syndrome
• Parity bits must be independent from each-other, or
otherwise they will be ineffective in increasing the
Hamming distance of the code
• A parity code is an ECC if all tolerated errors give
rise to different syndromes. In this case, the
syndrome uniquely encodes the error, enabling
correction.
Carc 02.04
alessandro.bogliolo@uniurb.it
Hamming codes
• ECC parity codes using the minimum number of
control bits required to grant single error correction
capabilities (i.e., dH=3)
• Hamming rule:
control (parity) bits must have enough
configurations to encode all possible error positions
and the error-free case.
112  nmrm
r m n
1 2 3
2 3 5
3 3 6
4 3 7
5 4 9
Carc 02.04
alessandro.bogliolo@uniurb.it
Hamming codes (encoding)
• Parity bits are placed in power-of-2 positions
• The i-th parity bit is computed as the EXOR of all
information bits whose position contains a 1 in the
i-th bit of its binary encoding
n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
r 1 2 3 4 5 6 7 8 9 10 11 12 13
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0
0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0
position
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
Carc 02.04
alessandro.bogliolo@uniurb.it
Hamming codes (decoding)
• In case of a single error, the syndrome is the binary
representation of the position of the error in the
word
• 011101 instead of 010101 => syndrome 110
(error in position 3)
• 000101 insetad of 010101 => syndrome 010
(error in position 2)
• Multiple errors cannot be corrected
• 011111 instead of 010101 => syndrome 011
(error in position 6 – wrong information)

More Related Content

What's hot

Scope of signals and systems
Scope of signals and systemsScope of signals and systems
Scope of signals and systemsDr.SHANTHI K.G
 
B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...
B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...
B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...Rai University
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representationAnil Pokhrel
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes Srikrishna Thota
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block CodesNilaNila16
 
Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...
Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...
Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...Rai University
 
Dr.naveen electronics binary codes
Dr.naveen electronics binary codesDr.naveen electronics binary codes
Dr.naveen electronics binary codesNAVEEN KUMAR
 
Visual basic coding
Visual basic codingVisual basic coding
Visual basic codingSara Corpuz
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusumakusuma11
 
Chapter 04 computer codes
Chapter 04 computer codesChapter 04 computer codes
Chapter 04 computer codesIIUI
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...Arti Parab Academics
 
Data Reprersentation
Data Reprersentation  Data Reprersentation
Data Reprersentation Kamal Acharya
 

What's hot (20)

Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
Scope of signals and systems
Scope of signals and systemsScope of signals and systems
Scope of signals and systems
 
Data Representation
Data RepresentationData Representation
Data Representation
 
B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...
B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...
B.sc cs-ii-u-1.9 digital logic circuits, digital component floting and fixed ...
 
Computer architecture data representation
Computer architecture  data representationComputer architecture  data representation
Computer architecture data representation
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block Codes
 
Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...
Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...
Bca 2nd sem-u-1.9 digital logic circuits, digital component floting and fixed...
 
DEL-244Chep i
DEL-244Chep iDEL-244Chep i
DEL-244Chep i
 
Dr.naveen electronics binary codes
Dr.naveen electronics binary codesDr.naveen electronics binary codes
Dr.naveen electronics binary codes
 
Binary codes
Binary codesBinary codes
Binary codes
 
Data representation
Data representationData representation
Data representation
 
Visual basic coding
Visual basic codingVisual basic coding
Visual basic coding
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
Chapter 04 computer codes
Chapter 04 computer codesChapter 04 computer codes
Chapter 04 computer codes
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
FYBSC IT Digital Electronics Unit I Chapter I Number System and Binary Arithm...
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Number system
Number system  Number system
Number system
 
Data Reprersentation
Data Reprersentation  Data Reprersentation
Data Reprersentation
 

Viewers also liked

CArcMOOC 05.01 - Elementary pipelining and performance metrics
CArcMOOC 05.01 -  Elementary pipelining and performance metricsCArcMOOC 05.01 -  Elementary pipelining and performance metrics
CArcMOOC 05.01 - Elementary pipelining and performance metricsAlessandro Bogliolo
 
CArcMOOC 03.01 - Boolean algebra and Logic Synthesis
CArcMOOC 03.01 - Boolean algebra and Logic SynthesisCArcMOOC 03.01 - Boolean algebra and Logic Synthesis
CArcMOOC 03.01 - Boolean algebra and Logic SynthesisAlessandro Bogliolo
 
CArcMOOC 04.02 - Instruction Set Architecture
CArcMOOC 04.02 - Instruction Set ArchitectureCArcMOOC 04.02 - Instruction Set Architecture
CArcMOOC 04.02 - Instruction Set ArchitectureAlessandro Bogliolo
 
CArcMOOC 04.01 - Von Neumann and CPU micro-architecture
CArcMOOC 04.01 - Von Neumann and CPU micro-architectureCArcMOOC 04.01 - Von Neumann and CPU micro-architecture
CArcMOOC 04.01 - Von Neumann and CPU micro-architectureAlessandro Bogliolo
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibraribrar562
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronicsvikram rajpurohit
 
CArcMOOC 05.03 - Pipeline hazards
CArcMOOC 05.03 - Pipeline hazardsCArcMOOC 05.03 - Pipeline hazards
CArcMOOC 05.03 - Pipeline hazardsAlessandro Bogliolo
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerAbdullaziz Tagawy
 
CArcMOOC 05.02 - Reference architecture
CArcMOOC 05.02 - Reference architectureCArcMOOC 05.02 - Reference architecture
CArcMOOC 05.02 - Reference architectureAlessandro Bogliolo
 
Intel µp instruction encoding and decoding
Intel µp instruction encoding and decodingIntel µp instruction encoding and decoding
Intel µp instruction encoding and decodingyocirem
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And CorrectionRenu Kewalramani
 

Viewers also liked (15)

CArcMOOC 05.01 - Elementary pipelining and performance metrics
CArcMOOC 05.01 -  Elementary pipelining and performance metricsCArcMOOC 05.01 -  Elementary pipelining and performance metrics
CArcMOOC 05.01 - Elementary pipelining and performance metrics
 
CArcMOOC 03.01 - Boolean algebra and Logic Synthesis
CArcMOOC 03.01 - Boolean algebra and Logic SynthesisCArcMOOC 03.01 - Boolean algebra and Logic Synthesis
CArcMOOC 03.01 - Boolean algebra and Logic Synthesis
 
CArcMOOC 03.05 - RTL design
CArcMOOC 03.05 - RTL designCArcMOOC 03.05 - RTL design
CArcMOOC 03.05 - RTL design
 
Italian Internet day 2016
Italian Internet day 2016Italian Internet day 2016
Italian Internet day 2016
 
CArcMOOC 04.02 - Instruction Set Architecture
CArcMOOC 04.02 - Instruction Set ArchitectureCArcMOOC 04.02 - Instruction Set Architecture
CArcMOOC 04.02 - Instruction Set Architecture
 
CArcMOOC 04.01 - Von Neumann and CPU micro-architecture
CArcMOOC 04.01 - Von Neumann and CPU micro-architectureCArcMOOC 04.01 - Von Neumann and CPU micro-architecture
CArcMOOC 04.01 - Von Neumann and CPU micro-architecture
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronics
 
CArcMOOC 05.03 - Pipeline hazards
CArcMOOC 05.03 - Pipeline hazardsCArcMOOC 05.03 - Pipeline hazards
CArcMOOC 05.03 - Pipeline hazards
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
 
CArcMOOC 05.02 - Reference architecture
CArcMOOC 05.02 - Reference architectureCArcMOOC 05.02 - Reference architecture
CArcMOOC 05.02 - Reference architecture
 
ROUGH DOC.437
ROUGH DOC.437ROUGH DOC.437
ROUGH DOC.437
 
Intel µp instruction encoding and decoding
Intel µp instruction encoding and decodingIntel µp instruction encoding and decoding
Intel µp instruction encoding and decoding
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 

Similar to CArcMOOC 02.04 - Special encodings

DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & CorrectionRohan Bhatkar
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionJeoffnaRuth
 
simulation of turbo encoding and decoding
simulation of turbo encoding and decodingsimulation of turbo encoding and decoding
simulation of turbo encoding and decodingGulafshan Saifi
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.pptAnnymus
 
Reed Solomon Coding For Error Detection and Correction
Reed Solomon Coding For Error Detection and CorrectionReed Solomon Coding For Error Detection and Correction
Reed Solomon Coding For Error Detection and Correctioninventionjournals
 
New error-detection
New error-detectionNew error-detection
New error-detectionNitesh Singh
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)Nitesh Singh
 
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...IRJET Journal
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD Arif Ahmed
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel CodingDr. Sanjay M. Gulhane
 
MODULE_2_Ch4_01082014.pptx .
MODULE_2_Ch4_01082014.pptx                   .MODULE_2_Ch4_01082014.pptx                   .
MODULE_2_Ch4_01082014.pptx .happycocoman
 
An Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH DecoderAn Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH Decoderijsrd.com
 

Similar to CArcMOOC 02.04 - Special encodings (20)

Turbo Code
Turbo Code Turbo Code
Turbo Code
 
K034066071
K034066071K034066071
K034066071
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
 
rs_1.pptx
rs_1.pptxrs_1.pptx
rs_1.pptx
 
simulation of turbo encoding and decoding
simulation of turbo encoding and decodingsimulation of turbo encoding and decoding
simulation of turbo encoding and decoding
 
Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.ppt
 
Unit-4.pptx
Unit-4.pptxUnit-4.pptx
Unit-4.pptx
 
Reed Solomon Coding For Error Detection and Correction
Reed Solomon Coding For Error Detection and CorrectionReed Solomon Coding For Error Detection and Correction
Reed Solomon Coding For Error Detection and Correction
 
error control coding
error control coding error control coding
error control coding
 
New error-detection
New error-detectionNew error-detection
New error-detection
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
 
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
 
MODULE_2_Ch4_01082014.pptx .
MODULE_2_Ch4_01082014.pptx                   .MODULE_2_Ch4_01082014.pptx                   .
MODULE_2_Ch4_01082014.pptx .
 
An Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH DecoderAn Efficient Interpolation-Based Chase BCH Decoder
An Efficient Interpolation-Based Chase BCH Decoder
 
Source coding
Source coding Source coding
Source coding
 

More from Alessandro Bogliolo

BIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in bibliotecaBIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in bibliotecaAlessandro Bogliolo
 
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...Alessandro Bogliolo
 
BIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in bibliotecaBIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in bibliotecaAlessandro Bogliolo
 
BIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamificationBIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamificationAlessandro Bogliolo
 
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni MojoliBIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni MojoliAlessandro Bogliolo
 
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona VillaBIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona VillaAlessandro Bogliolo
 
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco MuscogiuriBIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco MuscogiuriAlessandro Bogliolo
 
BIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna BusaBIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna BusaAlessandro Bogliolo
 
BIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-teBIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-teAlessandro Bogliolo
 
BIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchiBIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchiAlessandro Bogliolo
 
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementariBIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementariAlessandro Bogliolo
 
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioniBIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioniAlessandro Bogliolo
 
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara FaggiolaniBIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara FaggiolaniAlessandro Bogliolo
 
BIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionaleBIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionaleAlessandro Bogliolo
 
BIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitaliBIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitaliAlessandro Bogliolo
 
AIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia ChiavarinoAIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia ChiavarinoAlessandro Bogliolo
 
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla SioliAIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla SioliAlessandro Bogliolo
 
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro BoglioloAIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro BoglioloAlessandro Bogliolo
 

More from Alessandro Bogliolo (20)

BIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in bibliotecaBIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in biblioteca
 
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
 
BIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in bibliotecaBIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in biblioteca
 
BIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamificationBIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamification
 
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni MojoliBIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
 
Nuovi LIDI - Lezione 1
Nuovi LIDI - Lezione 1Nuovi LIDI - Lezione 1
Nuovi LIDI - Lezione 1
 
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona VillaBIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
 
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco MuscogiuriBIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
 
BIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna BusaBIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna Busa
 
BIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-teBIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-te
 
BIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchiBIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchi
 
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementariBIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
 
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioniBIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
 
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara FaggiolaniBIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
 
BIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionaleBIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionale
 
BIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitaliBIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitali
 
CodyTrip a BTO2021
CodyTrip a BTO2021CodyTrip a BTO2021
CodyTrip a BTO2021
 
AIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia ChiavarinoAIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
 
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla SioliAIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
 
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro BoglioloAIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Recently uploaded (20)

Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

CArcMOOC 02.04 - Special encodings

  • 1. Carc 02.04 alessandro.bogliolo@uniurb.it 02. Information theory 02.04. Special Encodings • Error models • Error detection • Error correction • Parity bits • Hamming codes Computer Architecture alessandro.bogliolo@uniurb.it
  • 2. Carc 02.04 alessandro.bogliolo@uniurb.it Error model • Independent errors - error probability per bit p • Error probability per word (1) • Multiple-error probability np)p(p n word  11 nn word n word n word pp n n )n(p ... )p(op )n(n )p(p n )(p )p(onp)p(p n )(p                          2222 1 2 1 1 2 2 1 1 1
  • 3. Carc 02.04 alessandro.bogliolo@uniurb.it Detection/correction target • Multiple errors are much less likely than single errors • The minimum target for error detection/correction are single errors per word • No encodings can detect/correct errors of any multiplicity
  • 4. Carc 02.04 alessandro.bogliolo@uniurb.it Hamming distance • Hamming distance between two words w1 and w2 dH(w1,w2) • Hamming distance of a code: minimum Hamming distance between pairs of code words • Irredundant codes (using the minimum number of bits) have Hamming distance dH(code)=1  )w,w(dmin)(d H w,w H 21code code21  
  • 5. Carc 02.04 alessandro.bogliolo@uniurb.it Detection/correction requirements • If dH(w1,w2)=1, a single error may transform w1 in w2 • If w1 and w2 belong to the same code, the error cannot be detected nor corrected, thus impairing reliability • The minimum Hamming distance required to detect up to e errors per word is dH(code)=e+1 • The minimum Hamming distance required to correct up to e errors per word is dH(code)=2e+1
  • 6. Carc 02.04 alessandro.bogliolo@uniurb.it Code classification • Error detecting codes (e-EDC) • e errors transform any code word in a non-code word • Error correcting codes (e-ECC) • e errors transform any code word in a non-code word that is closer to the original word than to any other code word • Any e-ECC is also 2e-EDC • Any code with dH > 1 is a redundant code • A n-bit redundant code is called separable if each codeword is composed of: • r information bits (belonging to an irredundant encoding) • m control bits (added to increase the Hamming distance between the codewords) n=r+m
  • 7. Carc 02.04 alessandro.bogliolo@uniurb.it Replication codes • Simple separable codes with the desired Hamming distance dH can be obtained by replicating dH times an irredundant code • Error detection technique • bit-wise comparison • Error correction technique • bit-wise majority voting n = dHr = r + (dH-1)r m = (dH-1)r
  • 8. Carc 02.04 alessandro.bogliolo@uniurb.it Parity codes • Parity bit: control bit computed in such a way that the codeword (or a subset of its bits) contains an even number of 1’s • Parity code: separable code obtained by adding parity control bits to an irredundant code • 1-EDC parity code: code with m=1 using a single parity bit computed over all the bits of the codeword • Detection technique: • Parity test of the number of 1’s in the word
  • 9. Carc 02.04 alessandro.bogliolo@uniurb.it Performance of parity code • Given: - p error probability per bit - L original length of a bit stream to be encoded - r size of a words (chunk of the bit stream) - We can compute: - p_c = 1-p complement of p - n = r+1 size of a codeword - P_w_correct = (1-p)^n - P_w_error = 1-P_w_correct - P_w_1error = n*p*(1-p)^(n-1) - P_w_Merror = P_w_error – P_w_1error
  • 10. Carc 02.04 alessandro.bogliolo@uniurb.it Performance of parity code • We can also compute: - N_words0 = L/r - N_reTx = P_w_1error / (1-P_w_1error) - N_words = N_words0 * (1+N_reTx) - L_total = N_words * n - The value of r (chunk length) can be decided in order to optimize the performance of the code, expressed in terms of: - Overhead = L_total / L - 1 - Failure prob = P_w_Merror
  • 11. Carc 02.04 alessandro.bogliolo@uniurb.it 0,000001 0,00001 0,0001 0,001 0,01 0,1 1 10 0 100 200 300 Chunk length (r) Failure probability Overhead 0 0,2 0,4 0,6 0,8 1 1,2 0 100 200 300 Chunk length (r) Failure probability Overhead Performance of parity code with retransmission
  • 12. Carc 02.04 alessandro.bogliolo@uniurb.it dH of Parity codes • A single parity bit guarantees dH=2 • Parity codes with dH>2 can be obtained by using more than 1 parity bits • The configuration of all parity bits is called syndrome • Parity bits must be independent from each-other, or otherwise they will be ineffective in increasing the Hamming distance of the code • A parity code is an ECC if all tolerated errors give rise to different syndromes. In this case, the syndrome uniquely encodes the error, enabling correction.
  • 13. Carc 02.04 alessandro.bogliolo@uniurb.it Hamming codes • ECC parity codes using the minimum number of control bits required to grant single error correction capabilities (i.e., dH=3) • Hamming rule: control (parity) bits must have enough configurations to encode all possible error positions and the error-free case. 112  nmrm r m n 1 2 3 2 3 5 3 3 6 4 3 7 5 4 9
  • 14. Carc 02.04 alessandro.bogliolo@uniurb.it Hamming codes (encoding) • Parity bits are placed in power-of-2 positions • The i-th parity bit is computed as the EXOR of all information bits whose position contains a 1 in the i-th bit of its binary encoding n 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 r 1 2 3 4 5 6 7 8 9 10 11 12 13 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 position 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1
  • 15. Carc 02.04 alessandro.bogliolo@uniurb.it Hamming codes (decoding) • In case of a single error, the syndrome is the binary representation of the position of the error in the word • 011101 instead of 010101 => syndrome 110 (error in position 3) • 000101 insetad of 010101 => syndrome 010 (error in position 2) • Multiple errors cannot be corrected • 011111 instead of 010101 => syndrome 011 (error in position 6 – wrong information)