TOPICS
Search

Hat Guessing Number


The hat guessing number HG(G) of a nonempty finite simple graph G is the largest positive integer q for which the following game has a guaranteed winning strategy. One player occupies each graph vertex, and an adversary assigns a hat from q colors to each player. Each sees the colors in their open graph neighborhood, but not their own. The players fix their rules in advance and simultaneously guess their own colors without communicating. Every player must guess, and the team wins when at least one is correct. Other players may be wrong (Alon et al. 2020).

If G has n vertices, then

 1<=HG(G)<=n.

For the upper bound, choose all hat colors independently and uniformly. Each player's chance of being correct is 1/q, so the expectation value of the number of correct guesses is n/q. A guaranteed win requires n/q>=1.

For the complete graph K_n, HG(K_n)=n. Label players and colors 0, 1, ..., n-1. Player i guesses the unique color that makes the sum of all colors congruent to i modulo n. Exactly one player then guesses correctly (Alon et al. 2020).

All hat assignments are allowed in this definition. Restricting the adversary to proper vertex colorings gives the proper hat guessing number, which can only increase the parameter (Adriaensen et al. 2026, p. 1). Both graph games differ from the guessing-or-passing version of the hat problem, where any incorrect guess causes the team to lose.


See also

Complete Graph, Hat Problem, Proper Hat Guessing Number

Explore with Wolfram|Alpha

References

Adriaensen, S.; Bentley, P.; Bishnoi, A.; Cames van Batenburg, W.; Kreiger, M.; van der Kuil, L.; Mandal, S.; Ramachandran, A.; and Tuite, J. "Hat Guessing with Proper Colorings." 24 Aug 2026. https://arxiv.org/abs/2603.04909v4.Alon, N.; Ben-Eliezer, O.; Shangguan, C.; and Tamo, I. "The Hat Guessing Number of Graphs." J. Combin. Th. Ser. B 144, 119-149, 2020. https://doi.org/10.1016/j.jctb.2020.01.003.

Cite this as:

Weisstein, Eric W. "Hat Guessing Number." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HatGuessingNumber.html

Subject classifications