<< Chapter < Page Chapter >> Page >
G = [ I k | P ] ,

where I k is the k by k identity matrix and P is some k by n - k matrix, then

[ I k | P ] - P - - - I n - k = 0 ,

where the 0 is the k by n - k matrix of all zeroes. Hence, define H = [ - P | I n - k ] . Observe that the (5,2) code is of this form, since inbinary arithmetic - 1 = + 1 and so - P = P .

A (7,3) binary code has generator matrix

G = 1 0 0 0 1 1 1 0 1 0 1 0 1 1 0 0 1 1 1 0 1

and parity check matrix

H T = 0 1 1 1 1 0 1 1 1 1 0 1 - - - - 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .

The syndrome [link] is built by calculating which error pattern is most likely (i.e., has the fewest bits flipped) for eachgiven syndrome e H T . This code has d m i n = 4 , and hence the code can correct any 1-bit errors, 7 (out of 21) possible 2-bit errors,and 1 of the many 3-bit errors.

Using the code from blockcode52.m , implement the binary (7,3) linear block code. Compare its performance and efficiencywith the (5,2) codeand to the majority rules code.

  1. For each code, plot the percentage p of bit flips in the channel versus the percentage of bit flips in thedecoded output.
  2. For each code, what is the average number of bits transmitted for each bit in the message?

Modulo 5 Arithmetic
Modulo 5 Arithmetic

Sometimes, when the source alphabet is not binary, the elements of the code words are also not binary.In this case, using the binary arithmetic of [link] is inappropriate. For example, consider a source alphabetwith 5 symbols labelled 0 , 1 , 2 , 3 , 4 . Arithmetic operations for these elements areaddition and multiplication modulo 5, which are defined in [link] . These can be implemented in M atlab using the mod function. For some source alphabets, the appropriate arithmetic operations are notmodulo operations, and in these cases, it is normal to simply define the desired operationsvia tables like [link] and  [link] .

A (6,4) code using a q = 5 element source alphabet has generator matrix

G = 1 0 0 0 4 4 0 1 0 0 4 3 0 0 1 0 4 2 0 0 0 1 4 1

and parity check matrix

H T = - 4 - 4 - 4 - 3 - 4 - 2 - 4 - 1 - 1 - 0 - 0 - 1 = 1 1 1 2 1 3 1 4 1 0 0 1 ,

since, in mod 5 arithmetic, - 4 = 1 , - 3 + 2 , - 2 = 3 , and - 1 = 4 . Observe that these fit in the general form of [link] and [link] . The syndrome [link] lists the q n - k = 5 6 - 4 = 25 syndromes and corresponding errors.

The code in this example corrects all one-symbol errors (and no others).

Syndrome Table for the q = 5 source alphabet ( 6 , 4 ) code.
Syndrome Most likely
e H T error e
00 000000
01 000001
10 000010
14 000100
13 001000
12 010000
11 100000
02 000002
20 000020
23 000200
21 002000
24 020000
22 200000
03 000003
30 000030
32 000300
34 003000
31 030000
33 300000
04 000004
40 000040
41 000400
42 004000
43 040000
44 400000

Find all the code words in the q = 5 (6,4) linear block code from Example  [link] .

What is the minimum distance of the q = 5 (6,4) linear block code from Example  [link] ?

Mimicking the code in blockcode52.m , implement the q = 5 (6,4) linear block code from Example  [link] . Compare its performance with the (5,2) and (7,3) binary codesin terms of

  1. performance in correcting errors
  2. data rate

Be careful: how can a q = 5 source alphabet be comparedfairly with a binary alphabet? Should the comparison be in terms of percentage of bit errors or percentage of symbol errors?

Encoding a compact disc

The process of writing to and reading from a compact disc is involved. The essential idea in optical media is that alaser beam bounces off the surface of the disc. If there is a pit, then the light travels a bit further than if there isno pit. The distances are controlled so that the extra time required by the round tripcorresponds to a phase shift of 180 degrees. Thus, the light travelling back interferes destructivelyif there is a pit, while it reinforces constructively if there is no pit. The strength of the beam is monitored todetect a 0 (a pit) or a 1 (no pit).

While the complete system can be made remarkably accurate, the reading and writing procedures are prone to errors.This is a perfect application for error correcting codes! The encoding procedure is outlined in [link] . The original signal is digitized at 44 , 100 samples per second in each of two stereo channels. Each sample is 16bits, and the effective data rate is 1.41 Mbps (mega bits per second).The Cross Interleave Reed–Solomon Code (CIRC) encoder (described shortly) has an effective rate of about

CDs can be used for audio or for data. The encoding procedure is the same, though decoding may be done differently for different applications.
CDs can be used for audio or for data. The encoding procedure is the same, though decoding may be done differently fordifferent applications.

3/4, and its output is at 1.88 Mbps. Then control and timing information is added,which contains the track and subtrack numbers that allow CD tracks to be accessed rapidly.The “EFM” (Eight-to-Fourteen Module) is an encoder that spreads the audio information in timeby changing each possible 8-bit sequence into a predefined 14-bit sequence so that each oneis separated by at least two (and at most ten) zeros. This is used to help the tracking mechanism.Reading errors on a CD often occur in clusters (a small scratch may be many hundreds of bits wide) and interleavingdistributes the errors so that they can be corrected more effectively. Finally, a large number of synchronizationbits are added. These are used by the control mechanism of the laser to tell it where to shine the beam in orderto find the next bits. The final encoded data rate is 4.32 Mbps. Thus, about 1/3 of the bits on the CDare actual data, and about 2/3 of the bits are present to help the system function and to detect (and/or correct) errorswhen they occur.

The CIRC encoder consists of two special linear block codes called Reed–Solomon codes (which are named after their inventors).Both use q = 256 (8-bit) symbols, and each 16-bit audio sample is split into two code words.The first code is a (32,28) linear code with d m i n = 5 , and the second code is a linear (28,24) code, also with d m i n = 5 . These are nonbinary and use special arithmetic operationsdefined by the “Galois Field” with 256 symbols. The encoding is split into two separate codes so thatan interleaver can be used between them. This spreads out the information over a larger range and helps to spread outthe errors (making them easier to detect and/or correct).

The encoding process on the CD is completely specified, but each manufacturer can implement the decoding as they wish.Accordingly, there are many choices. For instance, the Reed–Solomon codes can be used to correct two errors each, or to detect upto five errors. When errors are detected, a common strategy is to interpolate the audio, which may be transparent to the listeneras long as the error rate is not too high. Manufacturers may also choose to mute the audio when the error rate is too high.For data purposes, the controller can also ask that the data be reread. This may allow correction of the error whenit was caused by mistracking or some other transitory phenomenon, but will not be effective if the cause is a defect in the medium.

For further reading

The paper that started information theory is still a good read half a century after its initial publication.

  • C. E. Shannon, “A mathematical theory of communication,” Bell System Technical Journal , vol. 27, pp. 379–423 and 623–656, July and October, 1948.

Questions & Answers

what is defense mechanism
Chinaza Reply
what is defense mechanisms
Chinaza
I'm interested in biological psychology and cognitive psychology
Tanya Reply
what does preconceived mean
sammie Reply
physiological Psychology
Nwosu Reply
How can I develope my cognitive domain
Amanyire Reply
why is communication effective
Dakolo Reply
Communication is effective because it allows individuals to share ideas, thoughts, and information with others.
effective communication can lead to improved outcomes in various settings, including personal relationships, business environments, and educational settings. By communicating effectively, individuals can negotiate effectively, solve problems collaboratively, and work towards common goals.
it starts up serve and return practice/assessments.it helps find voice talking therapy also assessments through relaxed conversation.
miss
Every time someone flushes a toilet in the apartment building, the person begins to jumb back automatically after hearing the flush, before the water temperature changes. Identify the types of learning, if it is classical conditioning identify the NS, UCS, CS and CR. If it is operant conditioning, identify the type of consequence positive reinforcement, negative reinforcement or punishment
Wekolamo Reply
please i need answer
Wekolamo
because it helps many people around the world to understand how to interact with other people and understand them well, for example at work (job).
Manix Reply
Agreed 👍 There are many parts of our brains and behaviors, we really need to get to know. Blessings for everyone and happy Sunday!
ARC
A child is a member of community not society elucidate ?
JESSY Reply
Isn't practices worldwide, be it psychology, be it science. isn't much just a false belief of control over something the mind cannot truly comprehend?
Simon Reply
compare and contrast skinner's perspective on personality development on freud
namakula Reply
Skinner skipped the whole unconscious phenomenon and rather emphasized on classical conditioning
war
explain how nature and nurture affect the development and later the productivity of an individual.
Amesalu Reply
nature is an hereditary factor while nurture is an environmental factor which constitute an individual personality. so if an individual's parent has a deviant behavior and was also brought up in an deviant environment, observation of the behavior and the inborn trait we make the individual deviant.
Samuel
I am taking this course because I am hoping that I could somehow learn more about my chosen field of interest and due to the fact that being a PsyD really ignites my passion as an individual the more I hope to learn about developing and literally explore the complexity of my critical thinking skills
Zyryn Reply
good👍
Jonathan
and having a good philosophy of the world is like a sandwich and a peanut butter 👍
Jonathan
generally amnesi how long yrs memory loss
Kelu Reply
interpersonal relationships
Abdulfatai Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Software receiver design. OpenStax CNX. Aug 13, 2013 Download for free at http://cnx.org/content/col11510/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Software receiver design' conversation and receive update notifications?

Ask