8.13 Cryptography Introduction Secret writing means code. A simple code Let the letters a, b, c, …., z be represented by the numbers 1, 2, 3, …, 26. A.

Slides:



Advertisements
Similar presentations
Hamming Code.
Advertisements

Error Control Code.
Chapter 4 Systems of Linear Equations; Matrices
Chapter 4 Systems of Linear Equations; Matrices
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
Error Detection / Correction
Error detection and correction
Error Detection and Correction
Hamming Code Rachel Ah Chuen. Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted.
Hamming Code A Hamming code is a linear error-correcting code named after its inventor, Richard Hamming. Hamming codes can detect up to two bit errors,
Error Detection/Correction Section 1.7 Section 3.9 Bonus Material: Hamming Code.
Hamming It Up with Hamming Codes CSE 461 Section Week 3.
MAT 1000 Mathematics in Today's World Winter 2015.
E RROR D ETECTION A ND C ORRECTION C ODES Error Detection Code (Parity bit) Error Correction Code ( Hamming Code)
Exercise in the previous class p: the probability that symbols are delivered correctly C: 1 00 → → → → What is the threshold.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
Error Detection and Correction
DIGITAL COMMUNICATIONS Linear Block Codes
ADVANTAGE of GENERATOR MATRIX:
Chapter 31 INTRODUCTION TO ALGEBRAIC CODING THEORY.
COMPUTER NETWORKS Ms. Mrinmoyee Mukherjee Assistant Professor St. Francis Institute of Technology, Mount Poinsur, S.V.P Road, Borivli (west), Mumbai
4.4 Identity and Inverse Matrices
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
1 © Unitec New Zealand CRC calculation and Hammings code.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
The parity bits of linear block codes are linear combination of the message. Therefore, we can represent the encoder by a linear system described by matrices.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
Learning Objectives for Section 4.5 Inverse of a Square Matrix
Data Communications and Networking
Error-Detecting and Error-Correcting Codes
Cryptography and Coding Theory
Hamming Distance & Hamming Code
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Cryptography Cryptography is the use of mathematics to encode messages and prevent them from being read by anyone who doesn’t know the code. One way that.
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Matrices CHAPTER 8.9 ~ Ch _2 Contents  8.9 Power of Matrices 8.9 Power of Matrices  8.10 Orthogonal Matrices 8.10 Orthogonal Matrices 
Investigating Identity and Inverse Matrices QUESTION: What are some properties of identity and inverse matrices? 1 Let A =, B =, and C=. Consider the 2.
ECE 442 COMMUNICATION SYSTEM DESIGN LECTURE 10. LINEAR BLOCK CODES Husheng Li Dept. of EECS The University of Tennessee.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
Chapter 4 Systems of Linear Equations; Matrices
8 Coding Theory Discrete Mathematics: A Concept-based Approach.
Error Detection and Correction
ERROR DETECTION AND CORRECTION
Error Detection and Correction
Cyclic Redundancy Check (CRC)
Character coding schemes
… General Decoder for a Linear Block Code … …
OCR AS Level F451: Data transmission
CHAPTER 8.9 ~ 8.16 Matrices.
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Chapter 10 Error Detection And Correction
Error Detection Bit Error Rate(BER): It is the ratio of number Ne of errors appearing over a certain time interval t to the number Nt of 1 and 0 pulses.

Welcome to the presentation. Linear Block Codes Almost all block codes used today belong to a subset called linear block codes. The exclusive OR of two.
Packetizing Error Detection
II. Linear Block Codes.
Packetizing Error Detection
Information Redundancy Fault Tolerant Computing

Packetizing Error Detection
Learning Objectives for Section 4.5 Inverse of a Square Matrix
Protocols and the TCP/IP Suite
CS 325: CS Hardware and Software Organization and Architecture
Error Detection and Correction
Chapter 4 Systems of Linear Equations; Matrices
Chapter 4 Systems of Linear Equations; Matrices
Electrical Communications Systems ECE
Presentation transcript:

8.13 Cryptography Introduction Secret writing means code. A simple code Let the letters a, b, c, …., z be represented by the numbers 1, 2, 3, …, 26. A sequence of letters cab then be a sequence of numbers. Arrange these numbers into an m  n matrix M. Then we select a nonsingular m  m matrix A. The new sent message becomes Y = AM, then M = A -1 Y.

8.14 An Error Correcting Code Parity Encoding Add an extra bit to make the number of one is even

Example 2 (a) W = ( ) (b) W = ( ) Solution (a) The extra bit will be 1 to make the number of one is 4 (even). The code word is then C = ( ). (b) The extra bit will be 0 to make the number of one is 4 (even). So the edcoded word is C = ( ).

Fig 8.12

Example 3 Decoding the following (a) R = ( ) (b) R = ( ) Solution (a) The number of one is 4 (even), we just drop the last bit to get ( ). (b) The number of one is 3 (odd). It is a parity error.

Hamming Code where c 1, c 2, and c 3 denote the parity check bits.

Encoding

Example 4 Encode the word W = ( ). Solution

Decoding

Example 5 Compute the syndrome of (a) R = ( ) and (b) R = ( ) Solution (a) we conclude that R is a code word. By the check bits in ( ), we get the decoded message ( ).

Example 5 (2) (b) Since S  0, the received message R is not a code word.

Example 6 Changing zero to one gives the code word C = ( ). Hence the first, second, and fourth bits from C we arrive at the decoded message ( ).

8.15 Method of Least Squares Example 2 If we have the data (1, 1), (2, 3), (3, 4), (4, 6), (5,5), we want to fit the function f(x) =ax + b. Then a + b = 1 2a + b = 3 3a + b = 4 4a + b = 6 5a + b = 5

Example 2 (2) Let we have

Example 2 (3)

Example 2 (4) We have AX = Y. Then the best solution of X will be X = (A T A) -1 A T Y = (1.1, 0.5) T. For this line the sum of the square error is The fit function is y = 1.1x + 0.5

Fig 8.15

8.16 Discrete Compartmental Models The General Two-Compartment Model

Fig 8.16

Discrete Compartmental Model

Fig 8.17

Example 1 See Fig The initial amount is 100, 250, 80 for these three compartment. For Compartment 1 (C1): 20% to C2 0% to C3 then80% to C1 For C2: 5% to C1 30% to C3then65% to C2 For C3: 25% to C1 0% to C3then75% to C3

Fig 8.18

That is, New C1 = 0.8C C C3 New C2 = 0.2C C2 + 0C3 New C3 = 0C C C3 We get the transfer matrix as Example 1 (2)

Example 1 (3) Then one day later,

Note: m days later, Y = T m X 0

Example 2

Example 2 (2)

Example 2 (3)

Para la matriz sim é trica: tenemos = −9, −9, 9. Recuerda que si A es una matriz n × n simétrica, los autovectores correspondientes a distintos (diferentes) autovalores son ortogonales.

Observa que: K 3  K 1 = K 3  K 2 = 0, K 1  K 2 = – 4  0 Usando el m é todo de Gram-Schmidt: V 1 = K 1 Ahora si que tenemos un conjunto ortogonal y podemos normalizarlo: Ortogonal