SlideShare une entreprise Scribd logo
1  sur  51
Télécharger pour lire hors ligne
Outline   The Problem                       The Solution        Variants




                   T-79.4001:
                 The Hat Problem

                        Janne Peltola


                            5.3.2008




                   Janne Peltola   T-79.4001: The Hat Problem
Outline                      The Problem                       The Solution        Variants




          1   The Problem
                Introduction
                Solutions


          2   The Solution
                Algorithm
                Efficiency


          3   Variants




                                      Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The situation


      n players play a game. The rules are simple.
          The players enter a room blindfolded.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The situation


      n players play a game. The rules are simple.
          The players enter a room blindfolded.
          A hat is put on each player’s head. The hat is either red or
          blue.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The situation


      n players play a game. The rules are simple.
          The players enter a room blindfolded.
          A hat is put on each player’s head. The hat is either red or
          blue.
          The players must guess the color of their hat or pass.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The situation


      n players play a game. The rules are simple.
          The players enter a room blindfolded.
          A hat is put on each player’s head. The hat is either red or
          blue.
          The players must guess the color of their hat or pass.
          The players may not communicate with each other.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The situation


      n players play a game. The rules are simple.
          The players enter a room blindfolded.
          A hat is put on each player’s head. The hat is either red or
          blue.
          The players must guess the color of their hat or pass.
          The players may not communicate with each other.
          The players win if each non-passing guess is correct.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The situation


      n players play a game. The rules are simple.
          The players enter a room blindfolded.
          A hat is put on each player’s head. The hat is either red or
          blue.
          The players must guess the color of their hat or pass.
          The players may not communicate with each other.
          The players win if each non-passing guess is correct.
      We wish to find a strategy which maximizes the probability p that
      the players win.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



Some history



          The problem was first proposed by T. Ebert (UCLA) in his
          Ph.D. thesis in 1998.
          There’s certain charm as a puzzle but the problem doesn’t
          seem terribly relevant.




                              Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Some history



          The problem was first proposed by T. Ebert (UCLA) in his
          Ph.D. thesis in 1998.
          There’s certain charm as a puzzle but the problem doesn’t
          seem terribly relevant.
          However, there are connections between its efficient
          algorithmic solutions for n = 2k − 1 and coding theory.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Some history



          The problem was first proposed by T. Ebert (UCLA) in his
          Ph.D. thesis in 1998.
          There’s certain charm as a puzzle but the problem doesn’t
          seem terribly relevant.
          However, there are connections between its efficient
          algorithmic solutions for n = 2k − 1 and coding theory.
          Thus far the problem has eluded tractable solutions for
          n = 2k − 1.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



3 Players: a na¨ strategy
               ıve




          Suppose n = 3. The players are Alice, Bob and Chuck.




                              Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



3 Players: a na¨ strategy
               ıve




          Suppose n = 3. The players are Alice, Bob and Chuck.
          If Alice and Bob pass, Chuck guesses correctly 50% of the
          time.




                              Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



3 Players: a na¨ strategy
               ıve




          Suppose n = 3. The players are Alice, Bob and Chuck.
          If Alice and Bob pass, Chuck guesses correctly 50% of the
          time.
          Can we do better than this?




                              Janne Peltola   T-79.4001: The Hat Problem
Outline                 The Problem                       The Solution                Variants



3 Players: a better strategy



          Each player looks at the other players’                        R    R   R
          hats.                                                          R    R   B
                                                                         B    B   B
                                                                         B    R   R
                                                                         B    B   R
                                                                         R    B   B
                                                                         B    R   B
                                                                         R    B   R




                                 Janne Peltola   T-79.4001: The Hat Problem
Outline                 The Problem                       The Solution                Variants



3 Players: a better strategy



          Each player looks at the other players’                        R    R   R
          hats.                                                          R    R   B
          If the hats are different, he/she passes.                       B    B   B
                                                                         B    R   R
                                                                         B    B   R
                                                                         R    B   B
                                                                         B    R   B
                                                                         R    B   R




                                 Janne Peltola   T-79.4001: The Hat Problem
Outline                 The Problem                       The Solution                Variants



3 Players: a better strategy



          Each player looks at the other players’                        R    R   R
          hats.                                                          R    R   B
          If the hats are different, he/she passes.                       B    B   B
          If the hats are of the same color, he/she                      B    R   R
          picks the opposite one.                                        B    B   R
                                                                         R    B   B
                                                                         B    R   B
                                                                         R    B   R




                                 Janne Peltola   T-79.4001: The Hat Problem
Outline                 The Problem                       The Solution                Variants



3 Players: a better strategy



          Each player looks at the other players’                        R    R   R
          hats.                                                          R    R   B
          If the hats are different, he/she passes.                       B    B   B
          If the hats are of the same color, he/she                      B    R   R
          picks the opposite one.                                        B    B   R
                                                                         R    B   B
          This results in p = 3 , a 50% increase.
                              4                                          B    R   B
                                                                         R    B   R




                                 Janne Peltola   T-79.4001: The Hat Problem
Outline                 The Problem                       The Solution                Variants



3 Players: a better strategy



          Each player looks at the other players’                        R    R   R
          hats.                                                          R    R   B
          If the hats are different, he/she passes.                       B    B   B
          If the hats are of the same color, he/she                      B    R   R
          picks the opposite one.                                        B    B   R
                                                                         R    B   B
          This results in p = 3 , a 50% increase.
                              4                                          B    R   B
          This strategy can be generalized for all                       R    B   R
          n = 2k − 1.




                                 Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



7 Players




          The size of the state space is 27 = 128.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



7 Players




          The size of the state space is 27 = 128.
          The na¨ strategy can be applied.
                ıve




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution               Variants



7 Players




          The size of the state space is 27 = 128.
          The na¨ strategy can be applied.
                ıve
                                                                            63
          However, there is a complex strategy to achieve p =               64 .




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution               Variants



7 Players




          The size of the state space is 27 = 128.
          The na¨ strategy can be applied.
                ıve
                                                                            63
          However, there is a complex strategy to achieve p =               64 .
          Next, the general strategy will be defined.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The Idea




          We have encoded certain states in C .
          We present a strategy to obtain winning sequences via C .
          We show that the strategy fails with probability p = 2−r .




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Definitions




          Consider a game of n = 2r − 1 players and 2 colors.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



Definitions



          Consider a game of n = 2r − 1 players and 2 colors.
          Let v = (1110100)T ∈ Zn be the state vector.
                                2


      Definition
      Let H be an r × n matrix with entries in Z2 . Suppose that all
      possible nonzero columns occur exactly once. Then H is the check
      matrix (ie. Hv T = 0) of a code C . The code is called an [n, n − r ]
      Hamming code.




                                Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2




                              Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2
                                        1 1 1 1 0 0 0
          We choose (for this case) H = 1 1 0 0 1 1 0
                                        1 0 1 0 1 0 1




                              Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2
                                        1 1 1 1 0 0 0
          We choose (for this case) H = 1 1 0 0 1 1 0
                                        1 0 1 0 1 0 1
          For person 3, there are two possible v ’s: v0 = (1100100)T or
          v1 = (1110100)T .




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2
                                        1 1 1 1 0 0 0
          We choose (for this case) H = 1 1 0 0 1 1 0
                                        1 0 1 0 1 0 1
          For person 3, there are two possible v ’s: v0 = (1100100)T or
          v1 = (1110100)T .
          Person 3 uses the following rules to determine his call:




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2
                                        1 1 1 1 0 0 0
          We choose (for this case) H = 1 1 0 0 1 1 0
                                        1 0 1 0 1 0 1
          For person 3, there are two possible v ’s: v0 = (1100100)T or
          v1 = (1110100)T .
          Person 3 uses the following rules to determine his call:
                   T           T
              If Hv0 = 0 and Hv1 = 0, he passes




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2
                                        1 1 1 1 0 0 0
          We choose (for this case) H = 1 1 0 0 1 1 0
                                        1 0 1 0 1 0 1
          For person 3, there are two possible v ’s: v0 = (1100100)T or
          v1 = (1110100)T .
          Person 3 uses the following rules to determine his call:
                   T           T
              If Hv0 = 0 and Hv1 = 0, he passes
                   T           T
              If Hv0 = 0 and Hv1 = 0, he calls Red




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



The Strategy


          Recall the state vector v = (1110100)T ∈ Z7
                                                    2
                                        1 1 1 1 0 0 0
          We choose (for this case) H = 1 1 0 0 1 1 0
                                        1 0 1 0 1 0 1
          For person 3, there are two possible v ’s: v0 = (1100100)T or
          v1 = (1110100)T .
          Person 3 uses the following rules to determine his call:
                   T           T
              If Hv0 = 0 and Hv1 = 0, he passes
                   T           T
              If Hv0 = 0 and Hv1 = 0, he calls Red
                   T           T
              If Hv0 = 0 and Hv1 = 0, he calls Blue




                               Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



Why is this a good idea?



      Lemma
      There is a unique codeword c so that dH (v , c) = 1.

      Proof.
      Existence:
          Let s = Hv T = 0. s is a column of H, therefore s = HeiT .
          H(v + ei )T = s + s = 0, so dH (v , c) = 1.




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



Why is this a good idea?

      Lemma
      There is a unique codeword c so that dH (v , c) = 1.

      Proof.
      Uniqueness:
          Let c1 , c2 ∈ C so that dH (v , c1 ) = dH (v , c2 ) = 1.
          Therefore v + c1 = ei and v + c2 = ej for some (i, j).
          We have ei + ej = c1 + c2 ∈ C , so H(ei + ej )T = 0
          HeiT = HejT so columns i and j must be equal, but there are
          no equal columns by definition ⇒ contradiction.




                                Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Why is this NOT a good idea?

      Theorem
      The strategy is successful whenever Hv T = 0, but fails when
      Hv T = 0.

      Proof.
          We previously showed that there is a unique codeword c so
          that dH (v , c) = 1.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Why is this NOT a good idea?

      Theorem
      The strategy is successful whenever Hv T = 0, but fails when
      Hv T = 0.

      Proof.
          We previously showed that there is a unique codeword c so
          that dH (v , c) = 1.
          If we iterate through the vectors vi = v + ei , we find that
          HviT = 0 only for one value of i.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Why is this NOT a good idea?

      Theorem
      The strategy is successful whenever Hv T = 0, but fails when
      Hv T = 0.

      Proof.
          We previously showed that there is a unique codeword c so
          that dH (v , c) = 1.
          If we iterate through the vectors vi = v + ei , we find that
          HviT = 0 only for one value of i.
          Recall that we assumed that Hv T = 0, therefore the case
            T
          Hv0 = 0 precludes all other possibilities ⇒ v0 = v .




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Why is this NOT a good idea?

      Theorem
      The strategy is successful whenever Hv T = 0, but fails when
      Hv T = 0.

      Proof.
          We previously showed that there is a unique codeword c so
          that dH (v , c) = 1.
          If we iterate through the vectors vi = v + ei , we find that
          HviT = 0 only for one value of i.
          Recall that we assumed that Hv T = 0, therefore the case
            T
          Hv0 = 0 precludes all other possibilities ⇒ v0 = v .
          If Hv T = 0, no one would pass ⇒ the strategy fails.


                               Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



A helpful lemma



      Lemma
      An [n, k] linear code has 2k elements.

      Proof.
          An [n, k] linear code C has a check matrix H ∈ Zk×n .
                                                          2




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



A helpful lemma



      Lemma
      An [n, k] linear code has 2k elements.

      Proof.
          An [n, k] linear code C has a check matrix H ∈ Zk×n .
                                                          2
          The elements of C are the columns + (000)T




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



A helpful lemma



      Lemma
      An [n, k] linear code has 2k elements.

      Proof.
          An [n, k] linear code C has a check matrix H ∈ Zk×n .
                                                          2
          The elements of C are the columns + (000)T
          By combinatorics, there are 2k elements.




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution        Variants



How often does one fail?


      Theorem
      The probability that players win by using the strategy is 1 − 2−r .

      Proof.
          There are 2n elements in Zn .
                                    2




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution               Variants



How often does one fail?


      Theorem
      The probability that players win by using the strategy is 1 − 2−r .

      Proof.
          There are 2n elements in Zn .
                                    2
                                                                             2k
          Therefore, the probability to find k specific elements is            2n .




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution               Variants



How often does one fail?


      Theorem
      The probability that players win by using the strategy is 1 − 2−r .

      Proof.
          There are 2n elements in Zn .
                                    2
                                                                             2k
          Therefore, the probability to find k specific elements is            2n .
          Therefore, the probability to hit an element v so that
          Hv T = 0 is 2−r .




                                Janne Peltola   T-79.4001: The Hat Problem
Outline                The Problem                       The Solution               Variants



How often does one fail?


      Theorem
      The probability that players win by using the strategy is 1 − 2−r .

      Proof.
          There are 2n elements in Zn .
                                    2
                                                                             2k
          Therefore, the probability to find k specific elements is            2n .
          Therefore, the probability to hit an element v so that
          Hv T = 0 is 2−r .
          The complement case’s (Hv T = 0) probability is 1 − 2−r .




                                Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Food for thought



          In the best tradition of the literature, I explore the
          opportunities for expanding the problem without providing
          actual solutions.
          One could consider k colors instead of 2.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Food for thought



          In the best tradition of the literature, I explore the
          opportunities for expanding the problem without providing
          actual solutions.
          One could consider k colors instead of 2.
          One could consider n = 2r − 1.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Food for thought



          In the best tradition of the literature, I explore the
          opportunities for expanding the problem without providing
          actual solutions.
          One could consider k colors instead of 2.
          One could consider n = 2r − 1.
          One could consider non-symmetrical color distributions.




                               Janne Peltola   T-79.4001: The Hat Problem
Outline               The Problem                       The Solution        Variants



Food for thought



          In the best tradition of the literature, I explore the
          opportunities for expanding the problem without providing
          actual solutions.
          One could consider k colors instead of 2.
          One could consider n = 2r − 1.
          One could consider non-symmetrical color distributions.
          One could consider variants with more error tolerance (i.e. 1
          error allowed). Could one solve n = 2r − 1 with relaxed
          conditions?




                               Janne Peltola   T-79.4001: The Hat Problem
Outline              The Problem                       The Solution        Variants



Summary



          We found an interesting connection between coding theory
          and game theory.
          One can encode certain states and then make sure that there
          are only unique legal states which encode to nearby
          codewords.
          One can use this knowledge to develop a near-optimal
          strategy.




                              Janne Peltola   T-79.4001: The Hat Problem

Contenu connexe

Tendances

TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...Simplilearn
 
Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...
Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...
Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...Edureka!
 
Machine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkMachine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkRichard Kuo
 
Hebbian Learning
Hebbian LearningHebbian Learning
Hebbian LearningESCOM
 
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state AnalysisRF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state AnalysisSimen Li
 
Isi and nyquist criterion
Isi and nyquist criterionIsi and nyquist criterion
Isi and nyquist criterionsrkrishna341
 
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)Universitat Politècnica de Catalunya
 
用 Keras 玩 Machine Learning
用 Keras 玩 Machine Learning用 Keras 玩 Machine Learning
用 Keras 玩 Machine Learning家弘 周
 
Cost optimal algorithm
Cost optimal algorithmCost optimal algorithm
Cost optimal algorithmHeman Pathak
 
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...Jason Tsai
 
Recursive Neural Networks
Recursive Neural NetworksRecursive Neural Networks
Recursive Neural NetworksSangwoo Mo
 
PR-217: EfficientDet: Scalable and Efficient Object Detection
PR-217: EfficientDet: Scalable and Efficient Object DetectionPR-217: EfficientDet: Scalable and Efficient Object Detection
PR-217: EfficientDet: Scalable and Efficient Object DetectionJinwon Lee
 
Understanding RNN and LSTM
Understanding RNN and LSTMUnderstanding RNN and LSTM
Understanding RNN and LSTM健程 杨
 
RF Module Design - [Chapter 8] Phase-Locked Loops
RF Module Design - [Chapter 8] Phase-Locked LoopsRF Module Design - [Chapter 8] Phase-Locked Loops
RF Module Design - [Chapter 8] Phase-Locked LoopsSimen Li
 
Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3
Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3
Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3Fuyun Ling
 
Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10) Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10) Larry Guo
 
Directed Acyclic Graph
Directed Acyclic Graph Directed Acyclic Graph
Directed Acyclic Graph AJAL A J
 

Tendances (20)

LeNet-5
LeNet-5LeNet-5
LeNet-5
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
 
Recurrent neural network
Recurrent neural networkRecurrent neural network
Recurrent neural network
 
Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...
Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...
Artificial Neural Network Tutorial | Deep Learning With Neural Networks | Edu...
 
Machine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural NetworkMachine Learning - Convolutional Neural Network
Machine Learning - Convolutional Neural Network
 
Hebbian Learning
Hebbian LearningHebbian Learning
Hebbian Learning
 
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state AnalysisRF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
 
Isi and nyquist criterion
Isi and nyquist criterionIsi and nyquist criterion
Isi and nyquist criterion
 
Capsule Networks
Capsule NetworksCapsule Networks
Capsule Networks
 
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
 
用 Keras 玩 Machine Learning
用 Keras 玩 Machine Learning用 Keras 玩 Machine Learning
用 Keras 玩 Machine Learning
 
Cost optimal algorithm
Cost optimal algorithmCost optimal algorithm
Cost optimal algorithm
 
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
Introduction to Spiking Neural Networks: From a Computational Neuroscience pe...
 
Recursive Neural Networks
Recursive Neural NetworksRecursive Neural Networks
Recursive Neural Networks
 
PR-217: EfficientDet: Scalable and Efficient Object Detection
PR-217: EfficientDet: Scalable and Efficient Object DetectionPR-217: EfficientDet: Scalable and Efficient Object Detection
PR-217: EfficientDet: Scalable and Efficient Object Detection
 
Understanding RNN and LSTM
Understanding RNN and LSTMUnderstanding RNN and LSTM
Understanding RNN and LSTM
 
RF Module Design - [Chapter 8] Phase-Locked Loops
RF Module Design - [Chapter 8] Phase-Locked LoopsRF Module Design - [Chapter 8] Phase-Locked Loops
RF Module Design - [Chapter 8] Phase-Locked Loops
 
Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3
Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3
Phase-Locked Loop (PLL) and Carrier Synchronization Fuyun Ling_v1.3
 
Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10) Deep Learning: Recurrent Neural Network (Chapter 10)
Deep Learning: Recurrent Neural Network (Chapter 10)
 
Directed Acyclic Graph
Directed Acyclic Graph Directed Acyclic Graph
Directed Acyclic Graph
 

En vedette

Partiokasvatuksen tila pääkaupunkiseudulla
Partiokasvatuksen tila pääkaupunkiseudullaPartiokasvatuksen tila pääkaupunkiseudulla
Partiokasvatuksen tila pääkaupunkiseudullaJanne Peltola
 
Transkriptiotekijöiden sitoutumisen mallintaminen
Transkriptiotekijöiden sitoutumisen mallintaminenTranskriptiotekijöiden sitoutumisen mallintaminen
Transkriptiotekijöiden sitoutumisen mallintaminenJanne Peltola
 
AYY Council - Education Policy
AYY Council - Education PolicyAYY Council - Education Policy
AYY Council - Education PolicyJanne Peltola
 
BioIT-esittely (TKK)
BioIT-esittely (TKK)BioIT-esittely (TKK)
BioIT-esittely (TKK)Janne Peltola
 
T-61.2020: haku verkosta
T-61.2020: haku verkostaT-61.2020: haku verkosta
T-61.2020: haku verkostaJanne Peltola
 
Opiskelijan vaikutuskanavat
Opiskelijan vaikutuskanavatOpiskelijan vaikutuskanavat
Opiskelijan vaikutuskanavatJanne Peltola
 
Kokoustekniikan perusteet
Kokoustekniikan perusteetKokoustekniikan perusteet
Kokoustekniikan perusteetJanne Peltola
 
Working as student representative in Aalto University
Working as student representative in Aalto UniversityWorking as student representative in Aalto University
Working as student representative in Aalto UniversityJanne Peltola
 

En vedette (9)

Partiokasvatuksen tila pääkaupunkiseudulla
Partiokasvatuksen tila pääkaupunkiseudullaPartiokasvatuksen tila pääkaupunkiseudulla
Partiokasvatuksen tila pääkaupunkiseudulla
 
Transkriptiotekijöiden sitoutumisen mallintaminen
Transkriptiotekijöiden sitoutumisen mallintaminenTranskriptiotekijöiden sitoutumisen mallintaminen
Transkriptiotekijöiden sitoutumisen mallintaminen
 
AYY Council - Education Policy
AYY Council - Education PolicyAYY Council - Education Policy
AYY Council - Education Policy
 
BioIT-esittely (TKK)
BioIT-esittely (TKK)BioIT-esittely (TKK)
BioIT-esittely (TKK)
 
T-61.2020: haku verkosta
T-61.2020: haku verkostaT-61.2020: haku verkosta
T-61.2020: haku verkosta
 
Opiskelijan vaikutuskanavat
Opiskelijan vaikutuskanavatOpiskelijan vaikutuskanavat
Opiskelijan vaikutuskanavat
 
Strategia 2009-2010
Strategia 2009-2010Strategia 2009-2010
Strategia 2009-2010
 
Kokoustekniikan perusteet
Kokoustekniikan perusteetKokoustekniikan perusteet
Kokoustekniikan perusteet
 
Working as student representative in Aalto University
Working as student representative in Aalto UniversityWorking as student representative in Aalto University
Working as student representative in Aalto University
 

Plus de Janne Peltola

EFFI @ Asm Winter 2008
EFFI @ Asm Winter 2008EFFI @ Asm Winter 2008
EFFI @ Asm Winter 2008Janne Peltola
 
Bioit-esittely (Bioner)
Bioit-esittely (Bioner)Bioit-esittely (Bioner)
Bioit-esittely (Bioner)Janne Peltola
 
BioDi ry - biotekniikan alumnityö
BioDi ry - biotekniikan alumnityöBioDi ry - biotekniikan alumnityö
BioDi ry - biotekniikan alumnityöJanne Peltola
 
Vaeltajien ulkomaanprojektit (laajennetut 2/09)
Vaeltajien ulkomaanprojektit (laajennetut 2/09)Vaeltajien ulkomaanprojektit (laajennetut 2/09)
Vaeltajien ulkomaanprojektit (laajennetut 2/09)Janne Peltola
 
Vaeltajien kv-projektit
Vaeltajien kv-projektitVaeltajien kv-projektit
Vaeltajien kv-projektitJanne Peltola
 
Vaeltajien ulkomaanprojektit (laajennetut 1/09)
Vaeltajien ulkomaanprojektit (laajennetut 1/09)Vaeltajien ulkomaanprojektit (laajennetut 1/09)
Vaeltajien ulkomaanprojektit (laajennetut 1/09)Janne Peltola
 
Open Space Technology
Open Space TechnologyOpen Space Technology
Open Space TechnologyJanne Peltola
 
Open Space -menetelmä
Open Space -menetelmäOpen Space -menetelmä
Open Space -menetelmäJanne Peltola
 
Aalto-yliopiston strategia
Aalto-yliopiston strategiaAalto-yliopiston strategia
Aalto-yliopiston strategiaJanne Peltola
 
WOSM maailmankonferenssi 2008
WOSM maailmankonferenssi 2008WOSM maailmankonferenssi 2008
WOSM maailmankonferenssi 2008Janne Peltola
 
Piirineuvosto vuonna 2010
Piirineuvosto vuonna 2010Piirineuvosto vuonna 2010
Piirineuvosto vuonna 2010Janne Peltola
 

Plus de Janne Peltola (13)

EFFI @ Asm Winter 2008
EFFI @ Asm Winter 2008EFFI @ Asm Winter 2008
EFFI @ Asm Winter 2008
 
BioIT fukseille
BioIT fukseilleBioIT fukseille
BioIT fukseille
 
Bioit-esittely (Bioner)
Bioit-esittely (Bioner)Bioit-esittely (Bioner)
Bioit-esittely (Bioner)
 
BioDi ry - biotekniikan alumnityö
BioDi ry - biotekniikan alumnityöBioDi ry - biotekniikan alumnityö
BioDi ry - biotekniikan alumnityö
 
Vaeltajien ulkomaanprojektit (laajennetut 2/09)
Vaeltajien ulkomaanprojektit (laajennetut 2/09)Vaeltajien ulkomaanprojektit (laajennetut 2/09)
Vaeltajien ulkomaanprojektit (laajennetut 2/09)
 
Vaeltajien kv-projektit
Vaeltajien kv-projektitVaeltajien kv-projektit
Vaeltajien kv-projektit
 
Vaeltajien ulkomaanprojektit (laajennetut 1/09)
Vaeltajien ulkomaanprojektit (laajennetut 1/09)Vaeltajien ulkomaanprojektit (laajennetut 1/09)
Vaeltajien ulkomaanprojektit (laajennetut 1/09)
 
Open Space Technology
Open Space TechnologyOpen Space Technology
Open Space Technology
 
Open Space -menetelmä
Open Space -menetelmäOpen Space -menetelmä
Open Space -menetelmä
 
Aalto-yliopiston strategia
Aalto-yliopiston strategiaAalto-yliopiston strategia
Aalto-yliopiston strategia
 
Aalto-yliopisto
Aalto-yliopistoAalto-yliopisto
Aalto-yliopisto
 
WOSM maailmankonferenssi 2008
WOSM maailmankonferenssi 2008WOSM maailmankonferenssi 2008
WOSM maailmankonferenssi 2008
 
Piirineuvosto vuonna 2010
Piirineuvosto vuonna 2010Piirineuvosto vuonna 2010
Piirineuvosto vuonna 2010
 

Dernier

Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxElton John Embodo
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxRosabel UA
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Dernier (20)

Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
EMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docxEMBODO Lesson Plan Grade 9 Law of Sines.docx
EMBODO Lesson Plan Grade 9 Law of Sines.docx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Presentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptxPresentation Activity 2. Unit 3 transv.pptx
Presentation Activity 2. Unit 3 transv.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

Solving the Hat Problem: Strategies for Players to Guess Hat Colors Blindfolded

  • 1. Outline The Problem The Solution Variants T-79.4001: The Hat Problem Janne Peltola 5.3.2008 Janne Peltola T-79.4001: The Hat Problem
  • 2. Outline The Problem The Solution Variants 1 The Problem Introduction Solutions 2 The Solution Algorithm Efficiency 3 Variants Janne Peltola T-79.4001: The Hat Problem
  • 3. Outline The Problem The Solution Variants The situation n players play a game. The rules are simple. The players enter a room blindfolded. Janne Peltola T-79.4001: The Hat Problem
  • 4. Outline The Problem The Solution Variants The situation n players play a game. The rules are simple. The players enter a room blindfolded. A hat is put on each player’s head. The hat is either red or blue. Janne Peltola T-79.4001: The Hat Problem
  • 5. Outline The Problem The Solution Variants The situation n players play a game. The rules are simple. The players enter a room blindfolded. A hat is put on each player’s head. The hat is either red or blue. The players must guess the color of their hat or pass. Janne Peltola T-79.4001: The Hat Problem
  • 6. Outline The Problem The Solution Variants The situation n players play a game. The rules are simple. The players enter a room blindfolded. A hat is put on each player’s head. The hat is either red or blue. The players must guess the color of their hat or pass. The players may not communicate with each other. Janne Peltola T-79.4001: The Hat Problem
  • 7. Outline The Problem The Solution Variants The situation n players play a game. The rules are simple. The players enter a room blindfolded. A hat is put on each player’s head. The hat is either red or blue. The players must guess the color of their hat or pass. The players may not communicate with each other. The players win if each non-passing guess is correct. Janne Peltola T-79.4001: The Hat Problem
  • 8. Outline The Problem The Solution Variants The situation n players play a game. The rules are simple. The players enter a room blindfolded. A hat is put on each player’s head. The hat is either red or blue. The players must guess the color of their hat or pass. The players may not communicate with each other. The players win if each non-passing guess is correct. We wish to find a strategy which maximizes the probability p that the players win. Janne Peltola T-79.4001: The Hat Problem
  • 9. Outline The Problem The Solution Variants Some history The problem was first proposed by T. Ebert (UCLA) in his Ph.D. thesis in 1998. There’s certain charm as a puzzle but the problem doesn’t seem terribly relevant. Janne Peltola T-79.4001: The Hat Problem
  • 10. Outline The Problem The Solution Variants Some history The problem was first proposed by T. Ebert (UCLA) in his Ph.D. thesis in 1998. There’s certain charm as a puzzle but the problem doesn’t seem terribly relevant. However, there are connections between its efficient algorithmic solutions for n = 2k − 1 and coding theory. Janne Peltola T-79.4001: The Hat Problem
  • 11. Outline The Problem The Solution Variants Some history The problem was first proposed by T. Ebert (UCLA) in his Ph.D. thesis in 1998. There’s certain charm as a puzzle but the problem doesn’t seem terribly relevant. However, there are connections between its efficient algorithmic solutions for n = 2k − 1 and coding theory. Thus far the problem has eluded tractable solutions for n = 2k − 1. Janne Peltola T-79.4001: The Hat Problem
  • 12. Outline The Problem The Solution Variants 3 Players: a na¨ strategy ıve Suppose n = 3. The players are Alice, Bob and Chuck. Janne Peltola T-79.4001: The Hat Problem
  • 13. Outline The Problem The Solution Variants 3 Players: a na¨ strategy ıve Suppose n = 3. The players are Alice, Bob and Chuck. If Alice and Bob pass, Chuck guesses correctly 50% of the time. Janne Peltola T-79.4001: The Hat Problem
  • 14. Outline The Problem The Solution Variants 3 Players: a na¨ strategy ıve Suppose n = 3. The players are Alice, Bob and Chuck. If Alice and Bob pass, Chuck guesses correctly 50% of the time. Can we do better than this? Janne Peltola T-79.4001: The Hat Problem
  • 15. Outline The Problem The Solution Variants 3 Players: a better strategy Each player looks at the other players’ R R R hats. R R B B B B B R R B B R R B B B R B R B R Janne Peltola T-79.4001: The Hat Problem
  • 16. Outline The Problem The Solution Variants 3 Players: a better strategy Each player looks at the other players’ R R R hats. R R B If the hats are different, he/she passes. B B B B R R B B R R B B B R B R B R Janne Peltola T-79.4001: The Hat Problem
  • 17. Outline The Problem The Solution Variants 3 Players: a better strategy Each player looks at the other players’ R R R hats. R R B If the hats are different, he/she passes. B B B If the hats are of the same color, he/she B R R picks the opposite one. B B R R B B B R B R B R Janne Peltola T-79.4001: The Hat Problem
  • 18. Outline The Problem The Solution Variants 3 Players: a better strategy Each player looks at the other players’ R R R hats. R R B If the hats are different, he/she passes. B B B If the hats are of the same color, he/she B R R picks the opposite one. B B R R B B This results in p = 3 , a 50% increase. 4 B R B R B R Janne Peltola T-79.4001: The Hat Problem
  • 19. Outline The Problem The Solution Variants 3 Players: a better strategy Each player looks at the other players’ R R R hats. R R B If the hats are different, he/she passes. B B B If the hats are of the same color, he/she B R R picks the opposite one. B B R R B B This results in p = 3 , a 50% increase. 4 B R B This strategy can be generalized for all R B R n = 2k − 1. Janne Peltola T-79.4001: The Hat Problem
  • 20. Outline The Problem The Solution Variants 7 Players The size of the state space is 27 = 128. Janne Peltola T-79.4001: The Hat Problem
  • 21. Outline The Problem The Solution Variants 7 Players The size of the state space is 27 = 128. The na¨ strategy can be applied. ıve Janne Peltola T-79.4001: The Hat Problem
  • 22. Outline The Problem The Solution Variants 7 Players The size of the state space is 27 = 128. The na¨ strategy can be applied. ıve 63 However, there is a complex strategy to achieve p = 64 . Janne Peltola T-79.4001: The Hat Problem
  • 23. Outline The Problem The Solution Variants 7 Players The size of the state space is 27 = 128. The na¨ strategy can be applied. ıve 63 However, there is a complex strategy to achieve p = 64 . Next, the general strategy will be defined. Janne Peltola T-79.4001: The Hat Problem
  • 24. Outline The Problem The Solution Variants The Idea We have encoded certain states in C . We present a strategy to obtain winning sequences via C . We show that the strategy fails with probability p = 2−r . Janne Peltola T-79.4001: The Hat Problem
  • 25. Outline The Problem The Solution Variants Definitions Consider a game of n = 2r − 1 players and 2 colors. Janne Peltola T-79.4001: The Hat Problem
  • 26. Outline The Problem The Solution Variants Definitions Consider a game of n = 2r − 1 players and 2 colors. Let v = (1110100)T ∈ Zn be the state vector. 2 Definition Let H be an r × n matrix with entries in Z2 . Suppose that all possible nonzero columns occur exactly once. Then H is the check matrix (ie. Hv T = 0) of a code C . The code is called an [n, n − r ] Hamming code. Janne Peltola T-79.4001: The Hat Problem
  • 27. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 Janne Peltola T-79.4001: The Hat Problem
  • 28. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 1 1 1 1 0 0 0 We choose (for this case) H = 1 1 0 0 1 1 0 1 0 1 0 1 0 1 Janne Peltola T-79.4001: The Hat Problem
  • 29. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 1 1 1 1 0 0 0 We choose (for this case) H = 1 1 0 0 1 1 0 1 0 1 0 1 0 1 For person 3, there are two possible v ’s: v0 = (1100100)T or v1 = (1110100)T . Janne Peltola T-79.4001: The Hat Problem
  • 30. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 1 1 1 1 0 0 0 We choose (for this case) H = 1 1 0 0 1 1 0 1 0 1 0 1 0 1 For person 3, there are two possible v ’s: v0 = (1100100)T or v1 = (1110100)T . Person 3 uses the following rules to determine his call: Janne Peltola T-79.4001: The Hat Problem
  • 31. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 1 1 1 1 0 0 0 We choose (for this case) H = 1 1 0 0 1 1 0 1 0 1 0 1 0 1 For person 3, there are two possible v ’s: v0 = (1100100)T or v1 = (1110100)T . Person 3 uses the following rules to determine his call: T T If Hv0 = 0 and Hv1 = 0, he passes Janne Peltola T-79.4001: The Hat Problem
  • 32. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 1 1 1 1 0 0 0 We choose (for this case) H = 1 1 0 0 1 1 0 1 0 1 0 1 0 1 For person 3, there are two possible v ’s: v0 = (1100100)T or v1 = (1110100)T . Person 3 uses the following rules to determine his call: T T If Hv0 = 0 and Hv1 = 0, he passes T T If Hv0 = 0 and Hv1 = 0, he calls Red Janne Peltola T-79.4001: The Hat Problem
  • 33. Outline The Problem The Solution Variants The Strategy Recall the state vector v = (1110100)T ∈ Z7 2 1 1 1 1 0 0 0 We choose (for this case) H = 1 1 0 0 1 1 0 1 0 1 0 1 0 1 For person 3, there are two possible v ’s: v0 = (1100100)T or v1 = (1110100)T . Person 3 uses the following rules to determine his call: T T If Hv0 = 0 and Hv1 = 0, he passes T T If Hv0 = 0 and Hv1 = 0, he calls Red T T If Hv0 = 0 and Hv1 = 0, he calls Blue Janne Peltola T-79.4001: The Hat Problem
  • 34. Outline The Problem The Solution Variants Why is this a good idea? Lemma There is a unique codeword c so that dH (v , c) = 1. Proof. Existence: Let s = Hv T = 0. s is a column of H, therefore s = HeiT . H(v + ei )T = s + s = 0, so dH (v , c) = 1. Janne Peltola T-79.4001: The Hat Problem
  • 35. Outline The Problem The Solution Variants Why is this a good idea? Lemma There is a unique codeword c so that dH (v , c) = 1. Proof. Uniqueness: Let c1 , c2 ∈ C so that dH (v , c1 ) = dH (v , c2 ) = 1. Therefore v + c1 = ei and v + c2 = ej for some (i, j). We have ei + ej = c1 + c2 ∈ C , so H(ei + ej )T = 0 HeiT = HejT so columns i and j must be equal, but there are no equal columns by definition ⇒ contradiction. Janne Peltola T-79.4001: The Hat Problem
  • 36. Outline The Problem The Solution Variants Why is this NOT a good idea? Theorem The strategy is successful whenever Hv T = 0, but fails when Hv T = 0. Proof. We previously showed that there is a unique codeword c so that dH (v , c) = 1. Janne Peltola T-79.4001: The Hat Problem
  • 37. Outline The Problem The Solution Variants Why is this NOT a good idea? Theorem The strategy is successful whenever Hv T = 0, but fails when Hv T = 0. Proof. We previously showed that there is a unique codeword c so that dH (v , c) = 1. If we iterate through the vectors vi = v + ei , we find that HviT = 0 only for one value of i. Janne Peltola T-79.4001: The Hat Problem
  • 38. Outline The Problem The Solution Variants Why is this NOT a good idea? Theorem The strategy is successful whenever Hv T = 0, but fails when Hv T = 0. Proof. We previously showed that there is a unique codeword c so that dH (v , c) = 1. If we iterate through the vectors vi = v + ei , we find that HviT = 0 only for one value of i. Recall that we assumed that Hv T = 0, therefore the case T Hv0 = 0 precludes all other possibilities ⇒ v0 = v . Janne Peltola T-79.4001: The Hat Problem
  • 39. Outline The Problem The Solution Variants Why is this NOT a good idea? Theorem The strategy is successful whenever Hv T = 0, but fails when Hv T = 0. Proof. We previously showed that there is a unique codeword c so that dH (v , c) = 1. If we iterate through the vectors vi = v + ei , we find that HviT = 0 only for one value of i. Recall that we assumed that Hv T = 0, therefore the case T Hv0 = 0 precludes all other possibilities ⇒ v0 = v . If Hv T = 0, no one would pass ⇒ the strategy fails. Janne Peltola T-79.4001: The Hat Problem
  • 40. Outline The Problem The Solution Variants A helpful lemma Lemma An [n, k] linear code has 2k elements. Proof. An [n, k] linear code C has a check matrix H ∈ Zk×n . 2 Janne Peltola T-79.4001: The Hat Problem
  • 41. Outline The Problem The Solution Variants A helpful lemma Lemma An [n, k] linear code has 2k elements. Proof. An [n, k] linear code C has a check matrix H ∈ Zk×n . 2 The elements of C are the columns + (000)T Janne Peltola T-79.4001: The Hat Problem
  • 42. Outline The Problem The Solution Variants A helpful lemma Lemma An [n, k] linear code has 2k elements. Proof. An [n, k] linear code C has a check matrix H ∈ Zk×n . 2 The elements of C are the columns + (000)T By combinatorics, there are 2k elements. Janne Peltola T-79.4001: The Hat Problem
  • 43. Outline The Problem The Solution Variants How often does one fail? Theorem The probability that players win by using the strategy is 1 − 2−r . Proof. There are 2n elements in Zn . 2 Janne Peltola T-79.4001: The Hat Problem
  • 44. Outline The Problem The Solution Variants How often does one fail? Theorem The probability that players win by using the strategy is 1 − 2−r . Proof. There are 2n elements in Zn . 2 2k Therefore, the probability to find k specific elements is 2n . Janne Peltola T-79.4001: The Hat Problem
  • 45. Outline The Problem The Solution Variants How often does one fail? Theorem The probability that players win by using the strategy is 1 − 2−r . Proof. There are 2n elements in Zn . 2 2k Therefore, the probability to find k specific elements is 2n . Therefore, the probability to hit an element v so that Hv T = 0 is 2−r . Janne Peltola T-79.4001: The Hat Problem
  • 46. Outline The Problem The Solution Variants How often does one fail? Theorem The probability that players win by using the strategy is 1 − 2−r . Proof. There are 2n elements in Zn . 2 2k Therefore, the probability to find k specific elements is 2n . Therefore, the probability to hit an element v so that Hv T = 0 is 2−r . The complement case’s (Hv T = 0) probability is 1 − 2−r . Janne Peltola T-79.4001: The Hat Problem
  • 47. Outline The Problem The Solution Variants Food for thought In the best tradition of the literature, I explore the opportunities for expanding the problem without providing actual solutions. One could consider k colors instead of 2. Janne Peltola T-79.4001: The Hat Problem
  • 48. Outline The Problem The Solution Variants Food for thought In the best tradition of the literature, I explore the opportunities for expanding the problem without providing actual solutions. One could consider k colors instead of 2. One could consider n = 2r − 1. Janne Peltola T-79.4001: The Hat Problem
  • 49. Outline The Problem The Solution Variants Food for thought In the best tradition of the literature, I explore the opportunities for expanding the problem without providing actual solutions. One could consider k colors instead of 2. One could consider n = 2r − 1. One could consider non-symmetrical color distributions. Janne Peltola T-79.4001: The Hat Problem
  • 50. Outline The Problem The Solution Variants Food for thought In the best tradition of the literature, I explore the opportunities for expanding the problem without providing actual solutions. One could consider k colors instead of 2. One could consider n = 2r − 1. One could consider non-symmetrical color distributions. One could consider variants with more error tolerance (i.e. 1 error allowed). Could one solve n = 2r − 1 with relaxed conditions? Janne Peltola T-79.4001: The Hat Problem
  • 51. Outline The Problem The Solution Variants Summary We found an interesting connection between coding theory and game theory. One can encode certain states and then make sure that there are only unique legal states which encode to nearby codewords. One can use this knowledge to develop a near-optimal strategy. Janne Peltola T-79.4001: The Hat Problem