SlideShare a Scribd company logo
1 of 33
The Math Behind the Compact Disc
Linear Algebra and Error-Correcting Codes
william j. martin. mathematical sciences. wpi
wednesday december 3. 2008
fairfield university
11/18/2022 W J Martin Mathematical Sciences WPI
How the device works
The compact disc is a complex
system incorporating interesting
ideas from engineering, physics,
CS and math. We will focus only on
the mathematics of the error-
correction strategy.
For more info on the CD, see Kelin
Kuhn’s book “Laser Engineering”:
11/18/2022 W J Martin Mathematical Sciences WPI
Borrowed from K J Kuhn’s book
“Laser Engineering”
11/18/2022 W J Martin Mathematical Sciences WPI
The Pits
Each pit is 0.5 microns wide…
and 0.83 to 3.56 microns long.
Tracks are separated by 1.6
microns of “land”
Wavelength of green light is
about 0.5 micron
40 tracks under one strand of
human hair
11/18/2022 W J Martin Mathematical Sciences WPI
Modelling a
CommunicationsChannel
Linear algebra model:
r = m+e (vector add.)
11/18/2022 W J Martin Mathematical Sciences WPI
Channel with Error Correction
11/18/2022 W J Martin Mathematical Sciences WPI
Turn it into an algebra problem!
A number system that
the computer can
understand:
F = { 0, 1 }
Ordinary multiplication
Addition: 1+1=0
Now music is turned into
binary vectors!
11/18/2022 W J Martin Mathematical Sciences WPI
A bit (or a nibble?) of graph theory
The n-cube is a type of
Hamming graph
Vertices are all binary n-
tuples
n-tuples are adjacent if
they differ in only one
coordinate
Nice ‘eigenvalues’!
11/18/2022 W J Martin Mathematical Sciences WPI
Binary Vector Spaces
The vectors are all possible binary n-tuples
0 0 1 0 1 1 1 0 1 0 1 1 0 0 0
+
0 0 1 1 1 1 0 0 0 0 0 0 0 0 1
=
0 0 0 1 0 0 1 0 1 0 1 1 0 0 1
11/18/2022 W J Martin Mathematical Sciences WPI
Hamming Distance
The distance between two binary n-tuples x and y is the
number of coordinates in which they differ
This is a metric:
dist( x, y )  0 with dist( x, y ) = 0 iff x=y
dist( x, y ) = dist( y, x )
Triangle inequality
dist( x, z )  dist( x, y ) + dist( y, z )
dist( 001100, 001011 ) = 3
11/18/2022 W J Martin Mathematical Sciences WPI
Theorem
Let C (the “code”) be a subset of F with
minimum distance between any two codewords
equal to d.
Then there exists an algorithm which corrects up to
t errors per transmitted codeword if and only if
d  2t + 1.
n
11/18/2022 W J Martin Mathematical Sciences WPI
Proof
If x and y are distinct
codewords, then the
balls of radius t around
them are disjoint. So if
the received vector is
within distance t of x, it
must be at distance > t
from any other
codeword. So decoding
is unique.
11/18/2022 W J Martin Mathematical Sciences WPI
A Useful Extension of the Theorem
The above (computationally infeasible)
decoding algorithm also correctly recovers from
any t symbol errors and any s symbol erasures
provided d > 2t+s.
transmit: 0 1 1 2 2 3 0
receive: 0 1 3 3 ? ? ?
(here, t=2 errors and s=3 erasures)
11/18/2022 W J Martin Mathematical Sciences WPI
Small Example
Let C denote the “rowspace” of the matrix
Then C = { 000000, 110100, 011010, 101110,
001101, 111001, 010111, 100011 }
and C has minimum distance 3 so C allows correction of
any single-bit error in any transmitted codeword.
11/18/2022 W J Martin Mathematical Sciences WPI
The binary Hamming code
Codewords: 0 0 0 0 0 0 0 1 1 1 1 1 1 1
1 1 0 1 0 0 0 0 0 1 0 1 1 1
0 1 1 0 1 0 0 1 0 0 1 0 1 1
0 0 1 1 0 1 0 1 1 0 0 1 0 1
0 0 0 1 1 0 1 1 1 1 0 0 1 0
1 0 0 0 1 1 0 0 1 1 1 0 0 1
0 1 0 0 0 1 1 1 0 1 1 1 0 0
1 0 1 0 0 0 1 0 1 0 1 1 1 0
Quadratic Residues!
In we have
1 = 1 6 = 1
2 = 4 5 = 4
3 = 2 4 = 2
Z
Z 7
2
2
2
2
2
2
11/18/2022 W J Martin Mathematical Sciences WPI
The Fano projective plane
Vector Space: F
“Poynts”: 1-dim. subspaces
“Lynes”: 2-dim. subspaces
3
2
11/18/2022 W J Martin Mathematical Sciences WPI
All codewords:
0 0 0 0 0 0 0 1 1 1 1 1 1 1
0 0 0 1 1 1 1 1 1 1 0 0 0 0
0 1 1 0 0 1 1 1 0 0 1 1 0 0
0 1 1 1 1 0 0 1 0 0 0 0 1 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 1 0 1 0 0 1 0 0 1 0 1
1 1 0 0 1 1 0 0 0 1 1 0 0 1
1 1 0 1 0 0 1 0 0 1 0 1 1 0
C = nullsp(H) where
11/18/2022 W J Martin Mathematical Sciences WPI
Codes from polynomials
Let’s replace F={0,1} with F={0,1,…,6} (with
modular arithmetic). Now consider the vector
space F[z] of all polynomials in z with
coefficients in F. For any subset N of F, we
have a linear transformation
L: F[z]  F
via f(z)  [ f(0), f(1), f(2), f(3), f(4), f(5) ]
(Here, we use, N={0,1,2,3,4,5}.)
This is a Reed-Solomon code.
N
11/18/2022 W J Martin Mathematical Sciences WPI
Polynomials to Codewords
Example:
Let the message be [1, 2, 2] (working mod 7)
Polynomial is f(z) = z + 2 z + 2
Codeword is
[f(0), f(1), f(2), f(3), f(4), f(5)] = [ 2, 5, 3, 3, 5, 2]
2
11/18/2022 W J Martin Mathematical Sciences WPI
Reed-Solomon Codes
FACT: Two polynomials of
degree less than k
having k points of
intersection must be
equal.
SO: Reed-Solomon code of
length n<q and dim k has
min. dist. n-k+1
11/18/2022 W J Martin Mathematical Sciences WPI
Compact Disc Parameters
SONY/Philips design (1980)
Music is sampled 44,100 times per second
Each sample consists of 32 bits, representing
left and right channel signal magnitude
0—65535 (Pulse Code Modulation – PCM)
So chip must process 1,411,200 raw data bits
per second
But it gets much worse!
11/18/2022 W J Martin Mathematical Sciences WPI
Cross-Interleaved RS Codes
Inner code is a 28-dimensional subspace of a
32-dimensional vector space over a finite field of
size 256.
Outer code is a 24-dimensional subspace of a
28-dimensional vector space.
Six 32-bit samples make up a 192-bit frame
which is encoded as a 224-bit codeword.
(Eventually, codewords have length 588 bits!)
11/18/2022 W J Martin Mathematical Sciences WPI
Encoding – The numbers
The codewords from the first code are
interleaved into a virtually infinite array of 28
rows of symbols over GF(256).
We pull out 8 binary columns (one symbol) to
obtain a 28x8=224-bit frame which is then
encoded using another Reed-Solomon code to
obtain a codeword of length 256 bits.
11/18/2022 W J Martin Mathematical Sciences WPI
Interleaving to disperse errors
Codewords of first code
are stacked like bricks
28 rows of vectors over
GF(256)
Extract columns and re-
encode using second
Reed-Solomon code
11/18/2022 W J Martin Mathematical Sciences WPI
Splitting Odd and Even Bits
11/18/2022 W J Martin Mathematical Sciences WPI
Back to the Pits
Each pit is 0.5 microns
wide…
and 0.83 to 3.56 microns
long.
Tracks are separated by
1.6 microns of “land”
Not all 01-sequences
can be recorded
11/18/2022 W J Martin Mathematical Sciences WPI
EFM: Eight-to-Fourteen Modulation
This encoding scheme can only store sequences
where each consecutive pair of ones is
separated by at least 2 and at most 10 zeros
This is achieved by a mapping F  F
which is given by a lookup table.
2 2
14
8
11/18/2022 W J Martin Mathematical Sciences WPI
Further Processing
Three more ‘merge bits’ are added to each of
these 14
So 256+8=264=33x8 bits, carrying six samples,
or 192 information bits, gets encoded as 588
channel bits on the disk
This represents 0.000136 seconds of music
11/18/2022 W J Martin Mathematical Sciences WPI
What actually goes on the disc?
We must do this 7,350 times per second
So CD player reads 4,321,800 bits per second of
music produced
To get 74 minutes of music, we must store
74x60x4321800 = 19,188,792,000
bits of data on the compact disc!
11/18/2022 W J Martin Mathematical Sciences WPI
When in doubt, erase
Inner code has minimum
distance 5 (over
GF(256))
Rather than correct two-
symbol errors, the CD
just erases the entire
received vector.
11/18/2022 W J Martin Mathematical Sciences WPI
So…how good is it?
The two Reed-Solomon codes team up to correct
‘burst’ errors of up to 4000 consecutive data bits (2.5
mm scratch on disc)
If signal at time t cannot be recovered, interpolate
With smart data distribution, this allows for recovery
from burst errors of up to 12,000 data bits (7.5 mm track
length on disc)
If all else fails, mute, giving 0.00028 sec of silence.
11/18/2022 W J Martin Mathematical Sciences WPI
Other Applications
Space communications (Mariner,Voyager,etc.)
DVD, CD-R, CD-ROM
Cell phones, internet packets
Memory: chips, hard drives, USB sticks
RAID disk arrays
Quantum computing
11/18/2022 W J Martin Mathematical Sciences WPI
The Last Slide
Thank You All!

More Related Content

Similar to CompactDisc.ppt

02 combinational logic
02 combinational logic02 combinational logic
02 combinational logicZainab Noor
 
Mm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsMm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsEellekwameowusu
 
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
 
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.pptunit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.pptJ. Glory Precious
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
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
 
Oth1
Oth1Oth1
Oth1b137
 
[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptx[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptxsolomonlemma14
 
Sparse Binary Zero Sum Games (ACML2014)
Sparse Binary Zero Sum Games (ACML2014)Sparse Binary Zero Sum Games (ACML2014)
Sparse Binary Zero Sum Games (ACML2014)Jialin LIU
 
Linear Block code.pdf
Linear Block code.pdfLinear Block code.pdf
Linear Block code.pdfSuryaRamVM
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxKaameshwaranKaameshw
 
Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Rimple Mahey
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and DecoderAmeer H Ali
 

Similar to CompactDisc.ppt (20)

02 combinational logic
02 combinational logic02 combinational logic
02 combinational logic
 
Lecture 1& 2.pptx
Lecture 1& 2.pptxLecture 1& 2.pptx
Lecture 1& 2.pptx
 
Data linklayer
Data linklayerData linklayer
Data linklayer
 
Mm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithmsMm chap08 -_lossy_compression_algorithms
Mm chap08 -_lossy_compression_algorithms
 
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
 
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.pptunit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
unit-6_combinational_jbiunkjnjbkjbjjcircuit-2.ppt
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Compression ii
Compression iiCompression ii
Compression ii
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
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
 
Oth1
Oth1Oth1
Oth1
 
Hamming codes
Hamming codesHamming codes
Hamming codes
 
[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptx[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptx
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
 
Y03301460154
Y03301460154Y03301460154
Y03301460154
 
Sparse Binary Zero Sum Games (ACML2014)
Sparse Binary Zero Sum Games (ACML2014)Sparse Binary Zero Sum Games (ACML2014)
Sparse Binary Zero Sum Games (ACML2014)
 
Linear Block code.pdf
Linear Block code.pdfLinear Block code.pdf
Linear Block code.pdf
 
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptxUNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
UNIT-I U20EST109 - PROBLEM SOLVING APPROACH - Copy (1).pptx
 
Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01Solvedproblems 120406031331-phpapp01
Solvedproblems 120406031331-phpapp01
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and Decoder
 

Recently uploaded

Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime GuwahatiGuwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahatimeghakumariji156
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Obat Aborsi 088980685493 Jual Obat Aborsi
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...drmarathore
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证wpkuukw
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样ayoqf
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证tufbav
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证ehyxf
 
Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)
Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)
Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)kajalvid75
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证wpkuukw
 
Vip Call Girls Bhubaneswar 9777949614 call Now Independent Escort Service Bh...
Vip Call Girls Bhubaneswar 9777949614  call Now Independent Escort Service Bh...Vip Call Girls Bhubaneswar 9777949614  call Now Independent Escort Service Bh...
Vip Call Girls Bhubaneswar 9777949614 call Now Independent Escort Service Bh...Call Girls Mumbai
 
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7jabtakhaidam7
 
Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...Sareena Khatun
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证wpkuukw
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammamahmedjiabur940
 
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...gajnagarg
 
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...jabtakhaidam7
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制uodye
 

Recently uploaded (20)

Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime GuwahatiGuwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
Guwahati Escorts Service Girl ^ 9332606886, WhatsApp Anytime Guwahati
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
 
Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)
Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)
Dubai Call Girls O525547819 Call Girls In Dubai (M0ist)
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
 
Vip Call Girls Bhubaneswar 9777949614 call Now Independent Escort Service Bh...
Vip Call Girls Bhubaneswar 9777949614  call Now Independent Escort Service Bh...Vip Call Girls Bhubaneswar 9777949614  call Now Independent Escort Service Bh...
Vip Call Girls Bhubaneswar 9777949614 call Now Independent Escort Service Bh...
 
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
Call Girls in Bhubaneswar (Odisha) call me [🔝 9777949614 🔝] escort service 24X7
 
Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Genuine Call Girls in Buldhana { 9332606886 } VVIP NISHA Call Girls Near 5 St...
 
Abortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get CytotecAbortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get Cytotec
 
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
一比一定(购)坎特伯雷大学毕业证(UC毕业证)成绩单学位证
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
 
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In Palghar [ 7014168258 ] Call Me For Genuine Models W...
 
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
🌹Bhubaneswar🌹Odisha❤CALL GIRL 9777949614 ❤CALL GIRLS IN Bhubaneswar ESCORT SE...
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 

CompactDisc.ppt

  • 1. The Math Behind the Compact Disc Linear Algebra and Error-Correcting Codes william j. martin. mathematical sciences. wpi wednesday december 3. 2008 fairfield university
  • 2. 11/18/2022 W J Martin Mathematical Sciences WPI How the device works The compact disc is a complex system incorporating interesting ideas from engineering, physics, CS and math. We will focus only on the mathematics of the error- correction strategy. For more info on the CD, see Kelin Kuhn’s book “Laser Engineering”:
  • 3. 11/18/2022 W J Martin Mathematical Sciences WPI Borrowed from K J Kuhn’s book “Laser Engineering”
  • 4. 11/18/2022 W J Martin Mathematical Sciences WPI The Pits Each pit is 0.5 microns wide… and 0.83 to 3.56 microns long. Tracks are separated by 1.6 microns of “land” Wavelength of green light is about 0.5 micron 40 tracks under one strand of human hair
  • 5. 11/18/2022 W J Martin Mathematical Sciences WPI Modelling a CommunicationsChannel Linear algebra model: r = m+e (vector add.)
  • 6. 11/18/2022 W J Martin Mathematical Sciences WPI Channel with Error Correction
  • 7. 11/18/2022 W J Martin Mathematical Sciences WPI Turn it into an algebra problem! A number system that the computer can understand: F = { 0, 1 } Ordinary multiplication Addition: 1+1=0 Now music is turned into binary vectors!
  • 8. 11/18/2022 W J Martin Mathematical Sciences WPI A bit (or a nibble?) of graph theory The n-cube is a type of Hamming graph Vertices are all binary n- tuples n-tuples are adjacent if they differ in only one coordinate Nice ‘eigenvalues’!
  • 9. 11/18/2022 W J Martin Mathematical Sciences WPI Binary Vector Spaces The vectors are all possible binary n-tuples 0 0 1 0 1 1 1 0 1 0 1 1 0 0 0 + 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 = 0 0 0 1 0 0 1 0 1 0 1 1 0 0 1
  • 10. 11/18/2022 W J Martin Mathematical Sciences WPI Hamming Distance The distance between two binary n-tuples x and y is the number of coordinates in which they differ This is a metric: dist( x, y )  0 with dist( x, y ) = 0 iff x=y dist( x, y ) = dist( y, x ) Triangle inequality dist( x, z )  dist( x, y ) + dist( y, z ) dist( 001100, 001011 ) = 3
  • 11. 11/18/2022 W J Martin Mathematical Sciences WPI Theorem Let C (the “code”) be a subset of F with minimum distance between any two codewords equal to d. Then there exists an algorithm which corrects up to t errors per transmitted codeword if and only if d  2t + 1. n
  • 12. 11/18/2022 W J Martin Mathematical Sciences WPI Proof If x and y are distinct codewords, then the balls of radius t around them are disjoint. So if the received vector is within distance t of x, it must be at distance > t from any other codeword. So decoding is unique.
  • 13. 11/18/2022 W J Martin Mathematical Sciences WPI A Useful Extension of the Theorem The above (computationally infeasible) decoding algorithm also correctly recovers from any t symbol errors and any s symbol erasures provided d > 2t+s. transmit: 0 1 1 2 2 3 0 receive: 0 1 3 3 ? ? ? (here, t=2 errors and s=3 erasures)
  • 14. 11/18/2022 W J Martin Mathematical Sciences WPI Small Example Let C denote the “rowspace” of the matrix Then C = { 000000, 110100, 011010, 101110, 001101, 111001, 010111, 100011 } and C has minimum distance 3 so C allows correction of any single-bit error in any transmitted codeword.
  • 15. 11/18/2022 W J Martin Mathematical Sciences WPI The binary Hamming code Codewords: 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 0 0 1 0 1 1 1 0 1 1 0 1 0 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1 0 1 0 0 0 1 1 0 1 1 1 1 0 0 1 0 1 0 0 0 1 1 0 0 1 1 1 0 0 1 0 1 0 0 0 1 1 1 0 1 1 1 0 0 1 0 1 0 0 0 1 0 1 0 1 1 1 0 Quadratic Residues! In we have 1 = 1 6 = 1 2 = 4 5 = 4 3 = 2 4 = 2 Z Z 7 2 2 2 2 2 2
  • 16. 11/18/2022 W J Martin Mathematical Sciences WPI The Fano projective plane Vector Space: F “Poynts”: 1-dim. subspaces “Lynes”: 2-dim. subspaces 3 2
  • 17. 11/18/2022 W J Martin Mathematical Sciences WPI All codewords: 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 1 0 0 1 1 0 0 0 1 1 1 1 0 0 1 0 0 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 0 1 0 0 1 0 1 1 1 0 0 1 1 0 0 0 1 1 0 0 1 1 1 0 1 0 0 1 0 0 1 0 1 1 0 C = nullsp(H) where
  • 18. 11/18/2022 W J Martin Mathematical Sciences WPI Codes from polynomials Let’s replace F={0,1} with F={0,1,…,6} (with modular arithmetic). Now consider the vector space F[z] of all polynomials in z with coefficients in F. For any subset N of F, we have a linear transformation L: F[z]  F via f(z)  [ f(0), f(1), f(2), f(3), f(4), f(5) ] (Here, we use, N={0,1,2,3,4,5}.) This is a Reed-Solomon code. N
  • 19. 11/18/2022 W J Martin Mathematical Sciences WPI Polynomials to Codewords Example: Let the message be [1, 2, 2] (working mod 7) Polynomial is f(z) = z + 2 z + 2 Codeword is [f(0), f(1), f(2), f(3), f(4), f(5)] = [ 2, 5, 3, 3, 5, 2] 2
  • 20. 11/18/2022 W J Martin Mathematical Sciences WPI Reed-Solomon Codes FACT: Two polynomials of degree less than k having k points of intersection must be equal. SO: Reed-Solomon code of length n<q and dim k has min. dist. n-k+1
  • 21. 11/18/2022 W J Martin Mathematical Sciences WPI Compact Disc Parameters SONY/Philips design (1980) Music is sampled 44,100 times per second Each sample consists of 32 bits, representing left and right channel signal magnitude 0—65535 (Pulse Code Modulation – PCM) So chip must process 1,411,200 raw data bits per second But it gets much worse!
  • 22. 11/18/2022 W J Martin Mathematical Sciences WPI Cross-Interleaved RS Codes Inner code is a 28-dimensional subspace of a 32-dimensional vector space over a finite field of size 256. Outer code is a 24-dimensional subspace of a 28-dimensional vector space. Six 32-bit samples make up a 192-bit frame which is encoded as a 224-bit codeword. (Eventually, codewords have length 588 bits!)
  • 23. 11/18/2022 W J Martin Mathematical Sciences WPI Encoding – The numbers The codewords from the first code are interleaved into a virtually infinite array of 28 rows of symbols over GF(256). We pull out 8 binary columns (one symbol) to obtain a 28x8=224-bit frame which is then encoded using another Reed-Solomon code to obtain a codeword of length 256 bits.
  • 24. 11/18/2022 W J Martin Mathematical Sciences WPI Interleaving to disperse errors Codewords of first code are stacked like bricks 28 rows of vectors over GF(256) Extract columns and re- encode using second Reed-Solomon code
  • 25. 11/18/2022 W J Martin Mathematical Sciences WPI Splitting Odd and Even Bits
  • 26. 11/18/2022 W J Martin Mathematical Sciences WPI Back to the Pits Each pit is 0.5 microns wide… and 0.83 to 3.56 microns long. Tracks are separated by 1.6 microns of “land” Not all 01-sequences can be recorded
  • 27. 11/18/2022 W J Martin Mathematical Sciences WPI EFM: Eight-to-Fourteen Modulation This encoding scheme can only store sequences where each consecutive pair of ones is separated by at least 2 and at most 10 zeros This is achieved by a mapping F  F which is given by a lookup table. 2 2 14 8
  • 28. 11/18/2022 W J Martin Mathematical Sciences WPI Further Processing Three more ‘merge bits’ are added to each of these 14 So 256+8=264=33x8 bits, carrying six samples, or 192 information bits, gets encoded as 588 channel bits on the disk This represents 0.000136 seconds of music
  • 29. 11/18/2022 W J Martin Mathematical Sciences WPI What actually goes on the disc? We must do this 7,350 times per second So CD player reads 4,321,800 bits per second of music produced To get 74 minutes of music, we must store 74x60x4321800 = 19,188,792,000 bits of data on the compact disc!
  • 30. 11/18/2022 W J Martin Mathematical Sciences WPI When in doubt, erase Inner code has minimum distance 5 (over GF(256)) Rather than correct two- symbol errors, the CD just erases the entire received vector.
  • 31. 11/18/2022 W J Martin Mathematical Sciences WPI So…how good is it? The two Reed-Solomon codes team up to correct ‘burst’ errors of up to 4000 consecutive data bits (2.5 mm scratch on disc) If signal at time t cannot be recovered, interpolate With smart data distribution, this allows for recovery from burst errors of up to 12,000 data bits (7.5 mm track length on disc) If all else fails, mute, giving 0.00028 sec of silence.
  • 32. 11/18/2022 W J Martin Mathematical Sciences WPI Other Applications Space communications (Mariner,Voyager,etc.) DVD, CD-R, CD-ROM Cell phones, internet packets Memory: chips, hard drives, USB sticks RAID disk arrays Quantum computing
  • 33. 11/18/2022 W J Martin Mathematical Sciences WPI The Last Slide Thank You All!