37
The Liar Game Mark Wildon

The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Liar GameMark Wildon

Page 2: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Guessing GamesAsk a friend to thinks of a number between 0 and 15. How manyNO/YES questions do you need to ask to find out the secret num-ber?

Page 3: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Guessing GamesAsk a friend to thinks of a number between 0 and 15. How manyNO/YES questions do you need to ask to find out the secret num-ber?

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Page 4: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Guessing GamesAsk a friend to thinks of a number between 0 and 15. How manyNO/YES questions do you need to ask to find out the secret num-ber?

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Q1Is the number

8, 9, 10, 11, 12, 13, 14 or 15?

YES

Page 5: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Guessing GamesAsk a friend to thinks of a number between 0 and 15. How manyNO/YES questions do you need to ask to find out the secret num-ber?

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Q1Is the number

8, 9, 10, 11, 12, 13, 14 or 15?

YES

Q2Is the number

12, 13, 14 or 15?

YES

Page 6: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Guessing GamesAsk a friend to thinks of a number between 0 and 15. How manyNO/YES questions do you need to ask to find out the secret num-ber?

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Q1Is the number

8, 9, 10, 11, 12, 13, 14 or 15?

YES

Q2Is the number

12, 13, 14 or 15?

YES

Q3Is the number14 or 15?

NO

Page 7: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Guessing GamesAsk a friend to thinks of a number between 0 and 15. How manyNO/YES questions do you need to ask to find out the secret num-ber?

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Q1Is the number

8, 9, 10, 11, 12, 13, 14 or 15?

YES

Q2Is the number

12, 13, 14 or 15?

YES

Q3Is the number14 or 15?

NO

Q4Is the number

13?

NO

Page 8: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1.

For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

Page 9: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 150000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

NO0

YES1

YES

YES

NO

NO

Page 10: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

Page 11: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

01110000 11010111 00000100 00010101 11010100 01000110 00000100 1101011100110101 00000100 01010111 11010111 01110100 00000100 01110100 1101011100000100 00010101 11010100 00100111 00000100 01110100 00010110 1001010001110100 00000100 10010110 10110101 00000100 01110100 00010110 1101010000000100 10110100 11110100 11010100 10110101 01110100 10010110 1101011101010111 00100111 00000011 11110001 00010110 11010100 01110100 0001011011010100 00110101 00000100 11000101 01110100 10010110 10110101 0000010001010111 11010111 00010101 01010110 11010100 00110101 00000100 1001011001010111 00000100 01110100 00010110 11010100 00000100 11010110 1001011001010111 01010100 00000100 01110100 11010111 00000100 10110101 1111010001010101 01010101 11010100 00110101 00000011 01110000 00010110 1101010000000100 10110101 01010110 10010110 01010111 11010101 10110101 0000010010010100 01010111 01010100 00000100 10010100 00110101 00110101 1101011111110101 10110101 00000100 11010111 01010101 00000100 11010111 1111010001110100 00110101 10010100 11010101 11010100 11010111 11110100 1011010100000100 01010101 11010111 00110101 01110100 11110100 01010111 1101010001000110

William Shakespeare (approx 1600)

To be, or not to be: that is the question:Whether ’tis nobler in the mind to sufferThe slings and arrows of outrageous fortune,

Page 12: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

01110000 11010111 00000100 00010101 11010100 01000110 00000100 1101011100110101 00000100 01010111 11010111 01110100 00000100 01110100 1101011100000100 00010101 11010100 00100111 00000100 01110100 00010110 1001010001110100 00000100 10010110 10110101 00000100 01110100 00010110 1101010000000100 10110100 11110100 11010100 10110101 01110100 10010110 1101011101010111 00100111 00000011 11110001 00010110 11010100 01110100 0001011011010100 00110101 00000100 11000101 01110100 10010110 10110101 0000010001010111 11010111 00010101 01010110 11010100 00110101 00000100 1001011001010111 00000100 01110100 00010110 11010100 00000100 11010110 1001011001010111 01010100 00000100 01110100 11010111 00000100 10110101 1111010001010101 01010101 11010100 00110101 00000011 01110000 00010110 1101010000000100 10110101 01010110 10010110 01010111 11010101 10110101 0000010010010100 01010111 01010100 00000100 10010100 00110101 00110101 1101011111110101 10110101 00000100 11010111 01010101 00000100 11010111 1111010001110100 00110101 10010100 11010101 11010100 11010111 11110100 1011010100000100 01010101 11010111 00110101 01110100 11110100 01010111 1101010001000110

William Shakespeare (approx 1600)

To be, or not to be: that is the question:Whether ’tis nobler in the mind to sufferThe slings and arrows of outrageous fortune,

Page 13: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

00110000 01110111 01000110 10000000 00011000 00000001 01011101 0001111010101100 00000000 10101110 00001011 10101100 00101011 01101011 0110100100001110 00101110 10101100 00101001 00101110 10001101 00100100 0010010110101100 00101011 01101011 01101001 00001110 00001111 10001000 0100101101100100 11001010 11001100 11001111 11001111 00001000 00000101 0001010000001100 00110000 01000000 01011010 00110000 11000010 00110000 0011000010000000 00011010 00111010 00110000 10000110 10111101 00011010 1010110000000000 00001011 00101110 10101001 00101011 11101000 10101000 1100101110001001 10100111 10101001 10101010 11001011 10100101 11001010 0100100100001110 11001100 11001111 11001111 00001000 00010100 10000001 0101101000110000 01000101 00010001 01111010 00110000 10100101 01011010 1010110000000000 00001011 11101010 11101011 01101001 00101110 00101100 0010101110101001 01101100 00001011 10101111 11101011 01101010 10101010 1010110000101011 10101110 11001011 10101100 00101011 10101011 00101011 0010111011101010 01001001 10001001 00100111 10100100 10101001 10101010 1100101110100101 11001010 01001001 00001110 11001100 11001111 11001111 0000100000010100

Anonymous Microsoft Programmer (2010?)

Part of the machine code for Microsoft Word 2011.

Page 14: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

00110000 01110111 01000110 10000000 00011000 00000001 01011101 0001111010101100 00000000 10101110 00001011 10101100 00101011 01101011 0110100100001110 00101110 10101100 00101001 00101110 10001101 00100100 0010010110101100 00101011 01101011 01101001 00001110 00001111 10001000 0100101101100100 11001010 11001100 11001111 11001111 00001000 00000101 0001010000001100 00110000 01000000 01011010 00110000 11000010 00110000 0011000010000000 00011010 00111010 00110000 10000110 10111101 00011010 1010110000000000 00001011 00101110 10101001 00101011 11101000 10101000 1100101110001001 10100111 10101001 10101010 11001011 10100101 11001010 0100100100001110 11001100 11001111 11001111 00001000 00010100 10000001 0101101000110000 01000101 00010001 01111010 00110000 10100101 01011010 1010110000000000 00001011 11101010 11101011 01101001 00101110 00101100 0010101110101001 01101100 00001011 10101111 11101011 01101010 10101010 1010110000101011 10101110 11001011 10101100 00101011 10101011 00101011 0010111011101010 01001001 10001001 00100111 10100100 10101001 10101010 1100101110100101 11001010 01001001 00001110 11001100 11001111 11001111 0000100000010100

Anonymous Microsoft Programmer (2010?)

Part of the machine code for Microsoft Word 2011.

Page 15: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Binary and ComputersIn a modern computer, everything is stored as a lists of the bits(binary digits) 0 and 1. For example, the number 12 could bestored as 1100, corresponding to the sequence of answers ‘Yes’,‘No’, ‘Yes’, ‘Yes’.

Books, music, videos, computer programs, bitcoins . . . , are allstored as bits.

Page 16: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 17: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 18: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 19: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 20: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MB

I Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 21: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MB

I Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 22: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MB

I Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 23: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 24: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Why Coding Theory?Think of a ‘bit’ as a single piece of information: ‘NO’ or ‘YES’;‘on’ or ‘off’; 0 or 1.

I A number between 0 and 15: 4 bits

I A small QR-code: 441 bits

I Text on this slide: 4400 bits

I Low-res Founder’s Building: 0.028 MB

I First five chapters of Pride and Prejudice: 0.028 MBI Full text of Pride and Prejudice: 0.750 MBI Compact disc of Beethoven 9th: 700 MBI Bluray disc of 3 hour film: 50 GB

Errors in reading and writing are inevitable. The best we can hopeis to be able to correct them when they occur.

Page 25: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Mariner 9

The Mariner 9 probe, launched in 1971, took the first images ofMars. The images were grey-scale, with 64 possible shades of greyfor each pixel.

I The pictures were transmitted back to Earth by sending onepixel at a time. Since 64 = 2 × 2 × 2 × 2 × 2 × 2, each pixelneeds 6 bits to send.

I The probability of each bit being flipped in the channel wasabout 5%.

I Encoding each pixel using 6 bits, about 26% of every imagewould be wrong.

I Instead each pixel was encoded using 32 bits, increasing thelength of the transmitted message over five times.

Page 26: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Mariner 9

The Mariner 9 probe, launched in 1971, took the first images ofMars. The images were grey-scale, with 64 possible shades of greyfor each pixel.

I The pictures were transmitted back to Earth by sending onepixel at a time. Since 64 = 2 × 2 × 2 × 2 × 2 × 2, each pixelneeds 6 bits to send.

I The probability of each bit being flipped in the channel wasabout 5%.

I Encoding each pixel using 6 bits, about 26% of every imagewould be wrong.

I Instead each pixel was encoded using 32 bits, increasing thelength of the transmitted message over five times.

Page 27: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Mariner 9 Image: Improvement Due to Error Correction

Page 28: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

Mariner 9 Image: Improvement Due to Error Correction

Page 29: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Mariner 9 Code: 32 of the 64 Mariner 9 codewords

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 10 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 10 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 00 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 10 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 00 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 00 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 0 10 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 10 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 00 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 00 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 0 0 10 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 00 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 10 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0 0 0 1 10 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 10 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 00 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 00 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 10 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 00 1 0 1 1 0 1 0 0 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 10 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 10 1 1 0 1 0 0 1 0 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 00 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 00 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 10 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1 10 1 1 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 00 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 10 1 0 1 1 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 0 1 0 1 0 1 0 1 1 0 1 00 0 1 1 1 1 0 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 00 1 1 0 1 0 0 1 1 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1

Page 30: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Mariner 9 Code: 32 of the 64 Mariner 9 codewords

Page 31: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Liar Game: Dealing with Deliberate Errors

Ask a friend to think of a number between 0 and 15. How manyNO/YES questions do you need to ask, if your friend is permittedto lie at most once?

It is not compulsory to lie.

Any interesting strategies? (For example, asking if someone haslied so far?)

Claim. No strategy can guarantee to use fewer than 7 questions.

Coding theory can be used to find a good strategy. Lies correspondto errors in transmission.

Page 32: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Liar Game: Dealing with Deliberate Errors

Ask a friend to think of a number between 0 and 15. How manyNO/YES questions do you need to ask, if your friend is permittedto lie at most once?

It is not compulsory to lie.

Any interesting strategies?

(For example, asking if someone haslied so far?)

Claim. No strategy can guarantee to use fewer than 7 questions.

Coding theory can be used to find a good strategy. Lies correspondto errors in transmission.

Page 33: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Liar Game: Dealing with Deliberate Errors

Ask a friend to think of a number between 0 and 15. How manyNO/YES questions do you need to ask, if your friend is permittedto lie at most once?

It is not compulsory to lie.

Any interesting strategies? (For example, asking if someone haslied so far?)

Claim. No strategy can guarantee to use fewer than 7 questions.

Coding theory can be used to find a good strategy. Lies correspondto errors in transmission.

Page 34: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Liar Game: Dealing with Deliberate Errors

Ask a friend to think of a number between 0 and 15. How manyNO/YES questions do you need to ask, if your friend is permittedto lie at most once?

It is not compulsory to lie.

Any interesting strategies? (For example, asking if someone haslied so far?)

Claim. No strategy can guarantee to use fewer than 7 questions.

Coding theory can be used to find a good strategy. Lies correspondto errors in transmission.

Page 35: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Liar Game: Dealing with Deliberate Errors

Ask a friend to think of a number between 0 and 15. How manyNO/YES questions do you need to ask, if your friend is permittedto lie at most once?

It is not compulsory to lie.

Any interesting strategies? (For example, asking if someone haslied so far?)

Claim. No strategy can guarantee to use fewer than 7 questions.

Coding theory can be used to find a good strategy. Lies correspondto errors in transmission.

Page 36: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Hamming Code

Richard Hamming discovered a one-errorcorrecting binary code of length 7 with 16codewords. He invented it because he wasfed up with the paper tape reader on hisearly computer misreading his programs.

It gives an optimal solution to the LiarGame using 7 questions.

Remarkably, it is possible to specify all the questions in advance.

Page 37: The Liar Game - Royal Hollowayuvah099/Talks/LiarGameHalfHour.pdfGuessing Games Ask a friend to thinks of a number between 0 and 15. How many NO/YES questions do you need to ask to

The Hamming CodeFind the binary codeword corresponding to your secret number.

0 0000000 8 11100001 1101001 9 00110012 0101010 10 10110103 1000011 11 01100114 1001100 12 01111005 0100101 13 10101016 1100110 14 00101107 0001111 15 1111111

The questions are:

‘Is there a 1 in the first position (far left) of the codeword?’,

‘Is there a 1 in the second position of the codeword?’,

and so on. If there is one lie, then the questioner will write downone wrong bit. But because the Hamming code can correct oneerror, the questioner can still work out what the number is.