11.07.2015 Views

Abstract Algebra Theory and Applications - Computer Science ...

Abstract Algebra Theory and Applications - Computer Science ...

Abstract Algebra Theory and Applications - Computer Science ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

110 CHAPTER 7 ALGEBRAIC CODING THEORYtriple-repetition method will automatically detect <strong>and</strong> correct all single errors,but it is slow <strong>and</strong> inefficient: to send a message consisting of n bits,2n extra bits are required, <strong>and</strong> we can only detect <strong>and</strong> correct single errors.We will see that it is possible to find an encoding scheme that will encode amessage of n bits into m bits with m much smaller than 3n.Example 2. Even parity, a commonly used coding scheme, is much moreefficient than the simple repetition scheme. The ASCII (American St<strong>and</strong>ardCode for Information Interchange) coding system uses binary 8-tuples, yielding2 8 = 256 possible 8-tuples. However, only seven bits are needed sincethere are only 2 7 = 128 ASCII characters. What can or should be done withthe extra bit? Using the full eight bits, we can detect single transmissionerrors. For example, the ASCII codes for A, B, <strong>and</strong> C areA = 65 10 = 01000001 2 ,B = 66 10 = 01000010 2 ,C = 67 10 = 01000011 2 .Notice that the leftmost bit is always set to 0; that is, the 128 ASCII charactershave codes00000000 2 = 0 10 ,01111111 2 = 127 10 .The bit can be used for error checking on the other seven bits. It is set toeither 0 or 1 so that the total number of 1 bits in the representation of acharacter is even. Using even parity, the codes for A, B, <strong>and</strong> C now becomeA = 01000001 2 ,B = 01000010 2 ,C = 11000011 2 .Suppose an A is sent <strong>and</strong> a transmission error in the sixth bit is caused bynoise over the communication channel so that (01000101) is received. Weknow an error has occurred since the received word has an odd number of1’s, <strong>and</strong> we can now request that the codeword be transmitted again. Whenused for error checking, the leftmost bit is called a parity check bit.By far the most common error-detecting codes used in computers arebased on the addition of a parity bit. Typically, a computer stores informationin m-tuples called words. Common word lengths are 8, 16, <strong>and</strong> 32 bits..

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!