CHAPTER 17 INFORMATION SCIENCE. Binary and decimal numbers a short review: For decimal numbers we have 10 digits available (0, 1, 2, 3, 9) 4731 =

Similar documents
For decimal numbers we have 10 digits available (0, 1, 2, 3, 9) 10,

Chapter 16 Identification Numbers Understand the purpose of a check digit. Know what a bmod

Chapter 17: Information Science Lesson Plan

is evenly divisibly by 10. What is the check digit for the mild RO TEL?

The UPC codes use a check digit to minimize scanning errors. A check digit is a digit included in a code to help detect errors.

Cryptography Worksheet

Recap. Definition (Encryption: Caesar Cipher)

NUMB3RS Activity: Creating Codes. Episode: Backscatter

Cryptography. What is Cryptography?

Lecture 02: Historical Encryption Schemes. Lecture 02: Historical Encryption Schemes

Fall 2017 CIS 3362 Final Exam. Last Name: First Name: 1) (10 pts) Decrypt the following ciphertext that was encrypted using the shift cipher:

This document contains additional questions; it is not intended to be treated as a complete paper.

Digital Fundamentals

CHW 261: Logic Design

Objectives. Connecting with Computer Science 2

Great Theoretical Ideas in Computer Science. Lecture 27: Cryptography

Encryption à la Mod Name

Senior Math Circles Cryptography and Number Theory Week 1

Cryptography. Cryptography is much more than. What is Cryptography, exactly? Why Cryptography? (cont d) Straight encoding and decoding

Basics of Information Worksheet

CSN Telecommunications. 5: Error Coding. Data, Audio, Video and Images Prof Bill Buchanan

Solve the matrix equation AX B for X by using A.(1-3) Use the Inverse Matrix Calculator Link to check your work

Some Stuff About Crypto

A nice outline of the RSA algorithm and implementation can be found at:

Modern Cryptography Activity 1: Caesar Ciphers

Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes

CIS 3362 Final Exam 12/4/2013. Name:

Information Science 2

Ch. 7 Error Detection and Correction

C = E(p) = (p + k) mod (n) p = D(C) = (C k) mod (n)

CRYPTOLOGY KEY MANAGEMENT CRYPTOGRAPHY CRYPTANALYSIS. Cryptanalytic. Brute-Force. Ciphertext-only Known-plaintext Chosen-plaintext Chosen-ciphertext

The Caesar Cipher Informatics 1 Functional Programming: Tutorial 3

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

Math 25 and Maple 3 + 4;

CS1800 Discrete Structures Fall 2017 October 25, CS1800 Discrete Structures Midterm Version B

15110 Principles of Computing, Carnegie Mellon University - CORTINA. Digital Data

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Learning Programme Fundamentals of data representation AS Level

Digital Systems and Binary Numbers

A New Symmetric Key Algorithm for Modern Cryptography Rupesh Kumar 1 Sanjay Patel 2 Purushottam Patel 3 Rakesh Patel 4

2/7/2013. CS 472 Network and System Security. Mohammad Almalag Lecture 2 January 22, Introduction To Cryptography

Cryptographic Methods for Deciphering/Identifying Ciphers in MATLAB

Sankalchand Patel College of Engineering, Visnagar B.E. Semester V (CE/IT) INFORMATION SECURITY Practical List

CS1800 Discrete Structures Spring 2017 Profs. Gold & Schnyder April 28, CS1800 Discrete Structures Final

Introduction to Cryptology. Lecture 2

Nature Sunday Academy Lesson Plan

BINARY SYSTEM. Binary system is used in digital systems because it is:

Basic Concepts and Definitions. CSC/ECE 574 Computer and Network Security. Outline

Math From Scratch Lesson 22: The RSA Encryption Algorithm

ENEE x Digital Logic Design. Lecture 3

Groups of two-state devices are used to represent data in a computer. In general, we say the states are either: high/low, on/off, 1/0,...

Behrang Noohi. 22 July Behrang Noohi (QMUL) 1 / 18

Substitution Ciphers, continued. 3. Polyalphabetic: Use multiple maps from the plaintext alphabet to the ciphertext alphabet.

Digital Fundamentals

Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay

CS 135: Fall Project 2 Simple Cryptography

Lecture 2 Algorithms with numbers

Lecture 07: Private-key Encryption. Private-key Encryption

Text Compression through Huffman Coding. Terminology

Secret Key Cryptography

Intro. To Multimedia Engineering Lossless Compression

CS1800 Discrete Structures Final Version A

CHAPTER V NUMBER SYSTEMS AND ARITHMETIC

Cryptography Lesson Plan

CSCI 454/554 Computer and Network Security. Topic 2. Introduction to Cryptography

Lab 1: Cipher Fundamentals

Cryptography I ALFE APRTGHAL KAP BQQQ ADCQTPEMY KSANG A KGA-ETAM MFLK FQRUQY

15 July, Huffman Trees. Heaps

Outline. Cryptography. Encryption/Decryption. Basic Concepts and Definitions. Cryptography vs. Steganography. Cryptography: the art of secret writing

15110 PRINCIPLES OF COMPUTING SAMPLE EXAM 2

Fault Tolerance & Reliability CDA Chapter 2 Additional Interesting Codes

Lab 1: Cipher Fundamentals

OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

Chapter 2 Number Systems and Codes Dr. Xu

L2. An Introduction to Classical Cryptosystems. Rocky K. C. Chang, 23 January 2015

Digital Fundamentals

Lab 5: Ciphers and Crypto Fundamentals

Classic Cryptography: From Caesar to the Hot Line

Math236 Discrete Maths with Applications

JNTU World JNTU World. JNTU World. Cryptography and Network Security. Downloaded From JNTU World ( )( )JNTU World

The inverse of a matrix

RSA (material drawn from Avi Kak Lecture 12, Lecture Notes on "Computer and Network Security" Used in asymmetric crypto.

Classical Encryption Techniques. CSS 322 Security and Cryptography

Cryptosystems. Lecture 34. Robb T. Koether. Hampden-Sydney College. Mon, Nov 24, 2014

Data Representation 1

CMSC 2833 Lecture 18. Parity Add a bit to make the number of ones (1s) transmitted odd.

No. of blue jelly beans No. of bags

Chapter 3. Cryptography. Information Security/System Security p. 33/617

Quantum Encryption Keys

Bits and Bit Patterns

Credit Cards. Validating Credit Cards. Answers

Multi-Level Encryption using SDES Key Generation Technique with Genetic Algorithm

Public Key Cryptography

ECE 646 Fall 2009 Final Exam December 15, Multiple-choice test

A different kind of Crypto

ENCRYPT AND DECRYPT IMAGE USING VIGENERE CIPHER

CSE COMPUTER USE: Fundamentals Test 1 Version D

Entropy Coding. - to shorten the average code length by assigning shorter codes to more probable symbols => Morse-, Huffman-, Arithmetic Code

COMM1003. Information Theory. Dr. Wassim Alexan Spring Lecture 4

2015 Mu Alpha Theta National Convention Alpha Algorithms. 1. What is the smallest prime that divides 703? a) 13 b) 17 c) 29 d) 37 e) NOTA

Transcription:

Math 167 Ch 17 Review 1 (c) Janice Epstein, 2013 CHAPTER 17 INFORMATION SCIENCE Binary and decimal numbers a short review: For decimal numbers we have 10 digits available (0, 1, 2, 3, 9) 4731 = Math 167 Ch 17 Review 2 (c) Janice Epstein, 2013 An orbiting satellite can follow 16 different directions that are labeled 0 to 15 in binary (0000 to 1111). Each message is sent as the command along with 3 check digits. The check digits are arranged so that certain sums have even parity. These are called parity-check sums where the parity of a number refers to whether a number is even or odd. Even numbers have even parity and odd numbers have odd parity. For our satellite, the following sums must be even (0 mod 2) a1 a2 a3 c1, a1 a3 a4 c2, and a2 a3 a4 c3 What are the check digits for command 9? For binary numbers we have 2 digits available, 0 and 1. 64 32 16 8 4 2 1 2 2 2 2 2 2 2 6 5 4 3 2 1 0 For this type of parity-check sum, we can use a Venn diagram to help find the check digits or find errors. Express the following binary numbers as decimal numbers: 10101 = 11100010 = Express the following decimal numbers as binary numbers: 55 = Fix the error in the code 1101101if it is known only one digit has an error. 88 =

Math 167 Ch 17 Review 3 (c) Janice Epstein, 2013 A set of words composed of 0 s and 1 s that has a message and parity check sums appended to the message is called a binary linear code. The resulting strings are called code words. The process of determining the message you were sent is called decoding. If you are sent a message x and receive the message as y, how can it be decoded? The distance between two strings of equal length is the number of positions in which the strings differ. (a) 10101 and 11101 (b) 111111 and 000000 The nearest neighbor decoding method decodes a message as the code word that agrees with the message in the most positions provided there is only one such message. How good a code is at detecting and correcting errors is determined by the weight of the code. The weight of a binary code is the minimum number of 1 s that occur among all non-zero code words of that code. Consider a code of weight t, The code can detect t-1 or fewer errors. t 1 If t is odd, the code will correct or fewer errors. 2 t 2 If t is even, the code will correct any or fewer errors. 2 Math 167 Ch 17 Review 4 (c) Janice Epstein, 2013 Consider the code C = {0000000, 0001111, 1111000, 1111111} (a) What is the weight of the code? (b) How many errors can this code detect? (c) How many errors can this code correct? (d) Decode the message received as 0001101. A compression algorithm converts data from an easy-to-use format to one that is more compact. jpg photo files use data compression as do most video and audio files. Delta function encoding uses the differences in one value to the next to encode the data. The data below is the closing price of the Dow Jones on Oct. 1, 2012 Oct 5, 2012. Compress the data using delta function encoding and determine how much the data is compressed. 13610 13575 13495 13482 13515

Math 167 Ch 17 Review 5 (c) Janice Epstein, 2013 Binary codes can also be compressed by assigning short codes to characters that occur frequently and longer codes to characters that occur rarely. We have 5 symbols, p, µ, σ,, and. If we give all the symbols a code of the same length, we would need 3 binary digits (000 to 101). So a string of 6 symbols would be 6 x 3 = 18 characters long. Can we devise a different binary code if we knew how often each character occurred? Use Huffman coding is a way to assign shorter code words to those characters that occur more often. Math 167 Ch 17 Review 6 (c) Janice Epstein, 2013 The process of disguising data is called encryption. Cryptology is the study of making and breaking secret codes. A Caesar cipher shifts the letters of the alphabet by fixed amount. EXAMPLE Create a Caesar cipher that shifts the alphabet by 10 letters and use it to encrypt the message THANKS. p 0.16 µ 0.19 σ 0.23 0.17 0.25 The message below was created with a Caesar cipher with a shift of 14. What is the original message?

Math 167 Ch 17 Review 7 (c) Janice Epstein, 2013 A decimation cipher multiplies the position of each letter by a fixed number k (called the key) and then uses modular arithmetic. To use a decimation cipher, 1. Assign the letters A Z to the numbers 0 25. 2. Choose a value for the key, k, that is an odd integer from 3 to 25 but not 13 (why not?) 3. Multiply the value of each letter (i) by the key (k) and find the remainder when divided by 26. 4. To decrypt a message, the encrypted value x needs to be multiplied by the decryption letter j and then the remainder mod 26 is the original letter. Math 167 Ch 17 Review 8 (c) Janice Epstein, 2013 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 A Vigenère cipher uses a key word to encode the characters. Use a Vigenère cipher with a key word of MINT to encode the message N E W P R I N T E R 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Use a decimation cipher with a key of 11 to encrypt THANKS T H A N K S A Vigenère cipher with a key word of LEX was used to encode the message below. Decode it. D Y M P V J L R The message below was encrypted with a key of 21. The decryption key is 5. Decode the message. Q R G S M O J T K To increase security, codes can be added together. Find 10110 + 00111 using binary addition. In binary addition, if the sum is even, enter a 0.

Math 167 Ch 17 Review 9 (c) Janice Epstein, 2013 SAMPLE EXAM QUESTIONS FROM CHAPTER 17 1. Convert the binary number 11001 to a decimal number. (A) 3 (B) 25 (C) 6 (D) 31 2. What is the distance between received words 1100101 and 1010111? (A) 1 (B) 2 (C) 3 (D) 4 (E) more than 4 3. Add the binary sequences 1100101 and 1110001. How many 1s digits are in the sum? (A) 1 (B) 2 (C) 3 (D) 4 (E) more than 4 4. Use delta encoding to compress the data 1834 1831 1831 1825 1850. By how many characters is the data compressed? (A) 9 (B) 10 (C) 11 (D) 13 Math 167 Ch 17 Review 10 (c) Janice Epstein, 2013 Questions 6 and 7 use the code {1100, 1010, 1001, 0110, 0101, 0011}. 6. What is the weight of this code? (A) 0 (B) 1 (C) 2 (D) 3 (E) 4 7. Which one of the following is a true statement about this code? (A) This code can detect and correct two errors (B) This code can detect two errors and correct 1 error (C) This code can detect and correct one error. (D) This code can detect one error and correct 0 errors (E) None of these Question 8 (6 points) Given binary codes A 0, C 10, I 110, S 1110, B 11110. (a) Encode the message CASSI (b) Decode the message 1111001110110101110 5. Use the nearest-neighbor Venn diagram method to decode the received word 1101101. (A) 1001 (B) 0100 (C) 1101 (D) 1011 (E) None of these Question 9 (5 points) What is the code word for the message 110, if the code word is the message appended with three check digits found using the parity-check sums a 1 + a 2 + a 3, a 1 + a 3 and a 2 + a 3?

Math 167 Ch 17 Review 11 (c) Janice Epstein, 2013 Math 167 Ch 17 Review 12 (c) Janice Epstein, 2013 Question 10 (7 points) Use a Huffman code to assign binary codes to the directions that occur with the probabilities given below. Up Down Left Right 0.12 0.20 0.25 0.43 Question 12 (5 points) Use a Caesar cipher with a shift of 3 to encode the word BINARY. Question 11 (5 points) Use a decimation cipher with key 9 to encode the word CABLE. Question 13 (6 points) Use the Vigenere cipher with the key word PEN to encode BASEBALL.