How to lie and get away with it Chris Budd How to tell the truth How to catch a liar How to lie and get away with it.

Slides:



Advertisements
Similar presentations
Mahdi Barhoush Mohammad Hanaysheh
Advertisements

MA10209 – Week 8 Tutorial B3/B4, Andrew Kennedy. people.bath.ac.uk/aik22/ma10209 Top Tips (response to sheet 7) Be careful with calculations, this is.
Magnetic Data Storage A computer hard drive stores your data magnetically Disk NS direction of disk motion Write Head __ Bits of information.
Magnets used to store data ? Magnet with unknown state Current N S S N 0 1.
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.
A Simple ALU Binary Logic.
Maths and the making of the modern world The maths behind Google and the Ipod Chris Budd.
Maths and the making of the modern world The maths behind Google and the Ipod Chris Budd.
The Maths of Google and the IPod Chris Budd We live in a world full of information.
Computational Complexity
Computability Dr. Colin Campbell Course Element 2 (EMAT20531)
IBM Systems Group © 2004 IBM Corporation Nick Jones What could happen to your data? What can you do about it?
Lab 8 : Multiplexer and Demultiplexer Systems:
Pulse Code Modulation Pulse Code Modulation
Recursion and Induction
Computing functions with Turing machines
Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Logic Circuits Situations to explain states What is a logic Gate
Chapter 3: Pulse Code Modulation
CSCI-1680 Link Layer Reliability Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
Approximate quantum error correction for correlated noise Avraham Ben-Aroya Amnon Ta-Shma Tel-Aviv University 1.
Functions of the Data Link Layer Provide service interface to the network layer Dealing with transmission errors Regulating data flow Slow receivers not.
CS 121 Digital Logic Design
Antisocial Behaviour Customer Satisfaction Survey Results North Community Safety Team COMMUNITY SAFETY.
Datorteknik IntegerAddSub bild 1 Integer arithmetic Depends what you mean by "integer" Assume at 3-bit string. –Then we define zero = 000 one = 001 Use.
PULSE MODULATION The process of transmitting signals in the form of pulses (discontinuous signals) by using special techniques. The Chapter includes: Pulse.
Hamming Code.
Math for Liberal Studies.  Problems can occur when data is transmitted from one place to another  The two main problems are  transmission errors: the.
Day 2 Information theory ( 信息論 ) Civil engineering ( 土木工程 ) Cultural exchange.
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
Practical Session 11 Codes. Hamming Distance General case: The distance between two code words is the amount of 1-bit changes required to reach from one.
MAT 1000 Mathematics in Today's World Winter 2015.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
Hamming It Up with Hamming Codes CSE 461 Section Week 3.
MAT 1000 Mathematics in Today's World Winter 2015.
Binary Arithmetic Math For Computers.
Twenty Questions Information Theory Girls Engaged in Math and Science, June 2012.
Binary Logic Lets think about the Binary!. What is Binary? Computers use binary as it’s a lot simpler! Each CPU is made up of millions of transistors.
Error Detection and Correction
Page 1 Data Structures in C for Non-Computer Science Majors Kirs and Pflughoeft Bits and Bytes How Many bits (or ‘doughnuts’) do we really need? Good question!
E RROR D ETECTION A ND C ORRECTION C ODES Error Detection Code (Parity bit) Error Correction Code ( Hamming Code)
Math for Liberal Studies.  A binary code is a system for encoding data made up of 0’s and 1’s  Examples  Postnet (tall = 1, short = 0)  UPC (dark.
Binary! Why do computers use binary? Easy to detect the state of a switch – they’re either on or off! Using another base makes.
Error Control Code. Widely used in many areas, like communications, DVD, data storage… In communications, because of noise, you can never be sure that.
Practical Session 10 Error Detecting and Correcting Codes.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
Binary Bracelets. Objectives Encode letters into binary Decode binary back to letters Relate the idea of storing initials on a bracelet to the idea of.
CS 111 – Sept. 13 Error detection Error correction Review/practice chapter 1 questions Commitment: –Please read sections 2.1 and 2.2.
Basic Concepts of Encoding Codes and Error Correction 1.
CS1Q Computer Systems Lecture 6 Simon Gay. Lecture 6CS1Q Computer Systems - Simon Gay2 Algebraic Notation Writing AND, OR, NOT etc. is long-winded and.
Error-Detecting and Error-Correcting Codes
Hamming (4,7) Code Binary Linear Codes Hamming Distance Weight of BLC
Data Transmission and Networks Transmission error checking & correcting.
Once you have been through these notes you will need to complete the workbook.
Hamming Codes The Hamming Code is a Forward Error-correcting Code (FEC) that uses redundant bits to correct a single bit error For 4 bit codes, 3 redundant.
Unit 18: Computational Thinking
Binary numbers: Week 7 Lesson 1
Error Correcting Code.
OCR AS Level F451: Data transmission
Representing characters
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.

Dhanushiya. R I YEAR BSc COMPUTER TECHNOLOGY.  Error is a condition when the output information does not match with the input information. During transmission,
Fundamentals of Data Representation
Starter Using the fingers on only one hand, what is the highest number you can count to? Rules: You must start at 1 You must count sequentially (i.e.
Learning Intention I will learn how computers store text.
How to lie and get away with it
Error Detection and Correction
Presentation transcript:

How to lie and get away with it Chris Budd

How to tell the truth How to catch a liar How to lie and get away with it

We live in a world full of information

It is important that we store and transmit this information carefully and without making mistakes Maths helps us to do this…

Pick a number 0,1,2,3,…,7 Q1. Is your number 4,5,6,7? Q2. Is your number 2,3,6,7? Q3. Is your number 1,3,5,7? Answer the following questions truthfully Storing information by telling the truth

Binary numbers

3 Bit Binary Number: x x represented by three bits a b c eg. 101 a,b,c are 0 or 1 x = 2 2 a + 2b + c eg. 101 = = = = 3

Binary numbers

1, 0 are called bits of information All information in a computer is made up of bits Usually binary numbers have more than 3 bits eg has 8 bits A message of 8 bits is called a byte Letters are converted into bytes

Using binary you can count from 0 to 31 on one hand with 5 bit binary numbers How does a monster count to 25? On his fingers! eg = = = = 25

Sometimes we make mistakes How to catch a liar. Mean to send Make a mistake on one bit and send Can we tell if we have made a mistake?

Answer the following questions. Either tell the truth or lie at most once Pick a number between 0 and 7 Q1 Is it 4,5,6,7? Q2 Is it 2,3,6,7? Q3 Is it 1,3,5,7? Q4 Is it 1,2,4,7? Can we find the liar?

answer to last question If all true there are an: even number of 1s If one lie there is an: odd number of 1s Last digit/question is called a parity bit and tells us if we have made a mistake

How to lie and get away with it! Suppose that we make a mistake Can we detect it …. And … Correct it

Answer the following questions.. You can either tell the truth or lie at most once Choose a number 0,1,2,3,4,5,6,7 Q1 Is the number 4,5,6,7? Q2 Is the number 2,3,6,7? Q3 Is the number 1,3,5,7? Q4 Is the number 1,3,4,6? Q5 Is the number 1,2,5,6? Q6 Is the number 2,3,4,5?

Binary number Correcting number

Start with a binary number Telling the truth doesnt change the number Lying once changes the number by one digit Hamming Distance: Take two binary numbers. How many digits do we have to change to turn one into the other?

Making an error changes the original binary number by one Hamming distance

Idea: Choose a code of binary numbers 3 Hamming distances apart Any error is then always closer to the original number than to any other number

All are a Hamming distance of 3 apart Binary number Correcting number

Error correcting codes. Used to store the numbers 0,1,2,3,4,5,6,7 in such a way that any errors can not only be detected but corrected.

These are used in IPODs IPOD also compresses the information.

Instead of sending this message which has lots of vowels in it which we dont really need W cn snd ths mssg nstd whch ds nt hv ny vwls t ll Nw try ths fr yrslf For example