CIS 0823. Mathematics for a Digital World

Information Science

1. Coding

binary code, digital, The ASCII code, encoding & decoding

2. Error detection/correction code

How error-correcting code works: (1) divide bits in code into (overlapping) groups, (2) decide the parity of every group, (3) confirm parity during encoding and decoding.

Example: When the message is a1a2a3a4, the code word is a1a2a3a4c1c2c3, where
c1 = a1+a2+a3, c2 = a1+a3+a4, c3 = a2+a3+a4

figure-17-1 (11K) figure-17-2 (6K) figure-17-3 (6K) figure-17-4 (6K)
1: message, 2: code word, 3: received code, 4: error correction

figure-17-5 (38K)

Assume the weight of a binary code is t. The code will detect (though not fix) t-1 errors. If t is odd, the code will correct (t-1)/2 errors, if t is even, the code will correct (t-2)/2 errors. For example, the weight of the above code is 3 (see Table 17.1, page 620), so it can either detect 2 errors or correct 1 error.

Another distance-based explanation of error correcting code.

3. Compression coding

Delta Encoding

Huffman Coding

4. Cryptography

Caesar cipher

Vigenere cipher

ABCDEFG HIJKLMN OPQRSTU VWXYZ
0123456 78910111213 14151617181920 2122232425

Credit card number, in binary code, can be encrypted and decrypted by adding the same binary key.

Public Key Encryption

Cryptogram

Assignment: Chapter 17 Exercises No. 1-5, 7, 9, 11, 20-21, 27, 29-32, 35, 38-39, 43, 51