This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Hat guessing number and guaranteed subgraphs

Peter Bradshaw Department of Mathematics, Simon Fraser University, Burnaby, Canada [email protected]
Abstract.

The hat guessing number of a graph is a parameter related to the hat guessing game for graphs introduced by Winkler. In this paper, we show that graphs of sufficiently large hat guessing number must contain arbitrary trees and arbitrarily long cycles as subgraphs. More precisely, for each tree TT, there exists a value N=N(T)N=N(T) such that every graph that does not contain TT as a subgraph has hat guessing number at most NN, and for each integer cc, there exists a value N=N(c)N^{\prime}=N^{\prime}(c) such that every graph with no cycle of length greater than cc has hat guessing number at most NN^{\prime}.

1. Introduction

We consider the hat guessing game, a game played on a finite graph GG between two parties. One party consists of a set of players, with exactly one player occupying each vertex of GG, and the other party consists of a single adversary. A player at a vertex vV(G)v\in V(G) can see exactly those players at the neighbors of vv, and importantly, no player can see himself. At the beginning of the game, the adversary gives each player a hat of some color chosen from the set {1,,q}\{1,\dots,q\}. Then, each player observes the hat colors of the players at neighboring vertices and guesses the color of his own hat. A player cannot hear the guesses of other players. The players win if at least one player correctly guesses the color of his hat; otherwise, the adversary wins. Before the game begins, the players communicate in order to devise a guessing strategy, but the players’ guessing strategy is known to the adversary. It is assumed that the players always follow a deterministic guessing strategy, so that the guess of the player at each vertex vv is uniquely determined by the colors of the hats at the neighbors of vv. If the players have a guessing strategy that guarantees at least one correct guess regardless of the adversary’s hat assignment, then we say that the hat guessing number of GG, written HG(G)\operatorname{HG}(G), is at least qq. In other words, HG(G)\operatorname{HG}(G) is the maximum integer qq for which the players have a winning guessing strategy in the hat guessing game played on GG with qq hat colors. The hat guessing game was first considered by Winkler [15] with hats of only two colors, and the game was first considered in its full generality by Butler, Hajiaghayi, Kleinberg, and Leighton [4].

We give a short and classical example from Winkler [15] of a winning strategy for the players in the hat guessing game. Suppose that Alice and Bob occupy the two vertices of K2K_{2} and play the hat guessing game against an adversary who may assign red hats and blue hats. Before the game begins, Alice agrees to guess the color of the hat that she sees on Bob’s head, and Bob agrees to guess the color opposite to the color of Alice’s hat. Then, when the adversary assigns hats to Alice and Bob, Alice guesses correctly if the two hats assigned have the same color, and Bob guesses correctly if the two hats assigned have different colors. Hence, Alice and Bob have a winning strategy on K2K_{2} against an adversary with two hat colors, implying that HG(K2)2\operatorname{HG}(K_{2})\geq 2. In fact, Winkler [15] showed that HG(K2)=2\operatorname{HG}(K_{2})=2, and more generally, Feige [8] showed that HG(Kn)=n\operatorname{HG}(K_{n})=n for all n1n\geq 1.

We may alternatively characterize the hat guessing game as a graph coloring problem, as follows. Let GG be a graph, and let qq be a positive integer. For each vertex vV(G)v\in V(G), let Γv\Gamma_{v} be a function that maps each (not necessarily proper) qq-coloring of N(v)N(v) to an element of the set {1,,q}\{1,\dots,q\}; that is, Γv:[q]N(v)[q]\Gamma_{v}:[q]^{N(v)}\rightarrow[q]. The goal in this problem is to give GG a (not necessarily proper) qq-coloring φ\varphi such that for each vertex vV(G)v\in V(G), Γv\Gamma_{v} does not map φ(N(v))\varphi(N(v)) to φ(v)\varphi(v), where φ(N(v))\varphi(N(v)) is the coloring of N(v)N(v) under φ\varphi. If such a qq-coloring φ\varphi exists for each set of functions {Γv:vV(G)}\{\Gamma_{v}:v\in V(G)\}, then we say that HG(G)<q\operatorname{HG}(G)<q. It is easy to check that in the graph coloring setting, our qq-coloring of GG corresponds to a hat assignment by the adversary in the game setting, and the functions Γv\Gamma_{v} correspond to the individual guessing strategies of the players. Due to the natural description of the hat guessing game as a graph coloring problem, we often identify a player with the vertex she occupies, and we often refer to a hat assignment as a graph coloring.

Determining bounds for the hat guessing numbers of large graph classes is a particularly difficult problem. Constant upper bounds are known for the hat guessing numbers of graphs belonging to certain restricted graph classes, such as trees [4], graphs of bounded degree [7], and graphs of bounded treedepth [12]. It has been asked frequently whether the hat guessing number of planar graphs is bounded above by a constant [2, 11], and stronger still, whether all kk-degenerate graphs have hat guessing number bounded above by a function of kk [7, 12]. While both of these questions are still open, some progress was recently made toward the first question when the author [3] showed that outerplanar graphs have hat guessing number less than 22500002^{250000}. This upper bound for planar graphs has since been dramatically reduced to 4040 by Knierim, Martinsson, and Steiner [13], who considered the more general class of strongly degenerate graphs.

In this paper, we present two more graph classes with bounded hat guessing number. We show that those graphs with a certain forbidden tree subgraph also have a constant upper bound for their hat guessing numbers, as do those graphs whose cycles are of bounded length. Equivalently, we may say that in a graph family 𝒢\mathcal{G} whose members have unbounded hat guessing number, every tree appears as a subgraph of some graph G𝒢G\in\mathcal{G}, and for each integer c3c\geq 3, a cycle of length at least cc also appears as a subgraph of some graph G𝒢G\in\mathcal{G}.

Theorem 1.1.

Let TT be a fixed tree. Then, there exists a value N=N(T)N=N(T) such that every graph GG with no subgraph isomorphic to TT satisfies HG(G)N\operatorname{HG}(G)\leq N.

Theorem 1.2.

If a graph GG has no cycle of length greater than cc, then

HG(G)<(6425)212c21+12.\operatorname{HG}(G)<\left(\frac{64}{25}\right)^{2^{\lfloor\frac{1}{2}c^{2}\rfloor-1}}+\frac{1}{2}.

Theorems 1.1 and 1.2 are analogues of the well-known facts that if a graph has a forbidden tree subgraph or only has cycles of bounded lengths, then that graph has bounded chromatic number (see e.g. [1, 6]).

2. Graphs with a forbidden tree subgraph

In this section, we prove Theorem 1.1. For our proof, we need to establish some tools. First, we consider a modified hat guessing game, introduced by Bosek et al. [2], in which each player makes ss guesses rather than a single guess, and in which the players win if some player makes a correct guess. For this modified game on a graph GG, we write HGs(G)\operatorname{HG}_{s}(G) for the maximum integer kk such that the players have a winning strategy when each player is assigned a hat of a color from the set {1,,k}\{1,\dots,k\}. For the modified hat guessing game with ss guesses, a method of Farnik [7] straightforwardly implies the following lemma.

Lemma 2.1.

Let s1s\geq 1 be an integer. If GG is a graph of maximum degree Δ\Delta, then HGs(G)<(Δ+1)es\operatorname{HG}_{s}(G)<(\Delta+1)es.

We also use the following lemma of Bosek et al. [2]

Lemma 2.2.

Let s2s\geq 2 be an integer. Let GG be a graph, and let V(G)=ABV(G)=A\cup B be a vertex partition of GG. If each vertex of AA has at most dd neighbors in BB, then HG(G)HGs(G[A])\operatorname{HG}(G)\leq\operatorname{HG}_{s}(G[A]), where s=(HG(G[B])+1)ds=(\operatorname{HG}(G[B])+1)^{d}.

Given a rooted tree TT with root rr, we say that the height of TT is the maximum distance dist(r,v)\operatorname{dist}(r,v) taken over all vertices vv in TT. Furthermore, given integers t,h1t,h\geq 1, we say that a tt-ary tree of height hh is a rooted tree of height hh in which every non-leaf vertex has exactly tt children. Observe that every tree TT is a subtree of some tt-ary tree TT^{\prime} of some height hh, so if TT is a forbidden subgraph of a graph GG, then a fortiori, TT^{\prime} is also a forbidden subgraph. Therefore, in order to prove Theorem 1.1, we instead prove the following equivalent theorem.

Theorem 2.3.

Let h1h\geq 1 and t2t\geq 2 be integers. There exists a value N=N(h,t)N=N(h,t) such that every graph GG with no subgraph isomorphic to a tt-ary tree of height hh satisfies HG(G)<N\operatorname{HG}(G)<N.

Proof.

We prove the theorem by induction on hh. When h=1h=1, the theorem states that there exists a value NN such that every graph GG with no K1,tK_{1,t} subgraph satisfies HG(G)<N\operatorname{HG}(G)<N. Since such a graph GG has maximum degree t1t-1, it follows from Lemma 2.2 that HG(G)<et\operatorname{HG}(G)<et. Therefore, it is sufficient to set N(1,t)=etN(1,t)=et.

Now, suppose that h>1h>1. Let GG be a graph containing no subgraph isomorphic to a tt-ary tree of height hh. We define k=2thk=2t^{h}, and we let AV(G)A\subseteq V(G) be the set of all vertices in GG of degree less than kk.

We claim that GAG\setminus A contains no subgraph isomorphic to a tt-ary tree of height h1h-1. Indeed, suppose that TGAT\subseteq G\setminus A is a tt-ary tree of height h1h-1. Since no leaf of TT was added to AA, every leaf of TT has degree at least kk in GG. However, this implies that a tt-ary tree of height hh can be found in GG by greedily choosing tt neighbors, for each of the th1t^{h-1} leaves of TT, that are not in TT and that were not chosen as neighbors of another leaf of TT. This is possible, since

k=2th>(th11)t+2th1>(th11)t+|V(T)|.k=2t^{h}>(t^{h-1}-1)t+2t^{h-1}>(t^{h-1}-1)t+|V(T)|.

Since we assumed that GG has no tt-ary tree of height hh as a subgraph, we have reached a contradiction. Therefore, we conclude that GAG\setminus A has no subgraph isomorphic to a tt-ary tree of height h1h-1.

Now, by the induction hypothesis, HG(GA)<N(h1,t)\operatorname{HG}(G\setminus A)<N(h-1,t). Furthermore, by Lemma 2.1, for each s1s\geq 1, HGs(G[A])<eks\operatorname{HG}_{s}(G[A])<eks. Therefore, letting s=(HG(GA)+1)ks=(\operatorname{HG}(G\setminus A)+1)^{k}, Lemma 2.2 implies that

HG(G)HGs(G[A])<eksekN(h1,t)k.\operatorname{HG}(G)\leq\operatorname{HG}_{s}(G[A])<eks\leq ekN(h-1,t)^{k}.

Thus, we let N(h,t)=ekN(h1,t)k=2ethN(h1,t)2thN(h,t)=ekN(h-1,t)^{k}=2et^{h}N(h-1,t)^{2t^{h}}, and then HG(G)<N(h,t)\operatorname{HG}(G)<N(h,t). This completes induction and the proof. ∎

Note that in the proof of Theorem 2.3, the constant N(h,t)N(h,t) grows very large very quickly due to the repeated applications of Lemma 2.2. We do not attempt to optimize this constant, because we suspect that our method is not best possible.

3. Graphs with bounded circumference

In this section, we prove Theorem 1.2. For a graph GG, the circumference of GG is the length of the longest cycle in GG. Hence, by proving Theorem 1.2, we show that a graph with a bounded circumference also has a bounded hat guessing number. In our proof, we often consider the blocks of a connected graph, which are defined as follows. For a graph GG, a block of GG is a nonempty subgraph HGH\subseteq G satisfying the following properties:

  • HH is either 22-connected or isomorphic to K2K_{2};

  • Every connected subgraph HGH^{\prime}\subseteq G satisfying HHH\subsetneq H^{\prime} has a cut vertex.

In other words, HH is a block of GG if HH is maximal with respect to the property of being either 22-connected or isomorphic to K2K_{2}.

Our strategy for proving Theorem 1.2 is as follows. First, we show that the hat guessing number of a graph GG can be bounded above by considering each block of GG individually. Then, we show that each block of a graph of bounded circumference also has bounded treedepth, and we use this fact to obtain an upper bound for HG(G)\operatorname{HG}(G). Some of our intermediate techniques, such as bounding the hat guessing number of a graph using its block decomposition, may have other applications in the study of the hat guessing game.

In some of our intermediate results, we also restrict the set of hat colors available to the adversary at certain vertices. Kokhas and Latyshev [14] showed that when the hat color set available to the adversary differs between vertices, only the number of hat colors available to the adversary at each vertex affects whether or not the players have a winning strategy on GG.

3.1. Using block decompositions to bound hat guessing number

In this subsection, we show that in order to bound HG(G)\operatorname{HG}(G) for a graph GG, it is enough to bound HG2(B)\operatorname{HG}_{2}(B) for each block BB of GG, where HG2(B)\operatorname{HG}_{2}(B) is the maximum number of hat colors with which the players in BB have a winning strategy in the game on BB with two guesses. We believe that this idea has potential for broad application in the study of the hat guessing game.

The key result (Lemma 3.3) of this subsection follows from two lemmas: Lemma 3.1 and Lemma 3.2. The proof of Lemma 3.1 is similar to the original proof of Lemma 2.2, and Lemma 3.2 comes directly from [14] with minor changes. We give a full proof for each lemma, since Lemma 3.1 has a short and elegant proof, and since the original proof of Lemma 3.2 uses the somewhat complicated notation of constructors.

Lemma 3.1.

Let GG be a graph, let vV(G)v\in V(G), and let =HG2(G)\ell=\operatorname{HG}_{2}(G). If the adversary has 22 available hat colors at vv and +1\ell+1 available hat colors at each other vertex of GG, then the adversary has a winning strategy in the hat guessing game on GG.

Proof.

We write H=G{v}H=G\setminus\{v\}, and we assume without loss of generality that the hat color set available to the adversary at each vertex of V(H)V(H) is {1,,+1}\{1,\dots,\ell+1\}. We fix a set of exactly 22 colors at vv and a guessing strategy Γ={Γv:vV(G)}\Gamma=\{\Gamma_{v}:v\in V(G)\} on GG. For each of the two possible colors at vv, Γ\Gamma determines a unique guessing strategy on HH. Therefore, for each hat assignment on HH, each vertex uV(H)u\in V(H) guesses one of 22 possible colors. Since HG2(H)HG2(G)\operatorname{HG}_{2}(H)\leq\operatorname{HG}_{2}(G)\leq\ell, we may assign each vertex of HH a hat from the color set {1,,+1}\{1,\dots,\ell+1\} in such a way that for each vertex uV(H)u\in V(H), neither of the two possible colors guessed at uu is correct. We give V(H)V(H) such a hat assignment, and hence no vertex of HH guesses its hat color correctly.

Now, with hat colors at V(H)V(H) assigned, Γv\Gamma_{v} uniquely determines a guess at vv, so we may assign vv a color that does not match it guess. Therefore, the adversary has a winning hat assignment with 22 colors available at vv and +1\ell+1 colors available at every other vertex of GG. ∎

Lemma 3.2.

Let GG be a graph with two subgraphs G1G_{1} and G2G_{2} and with a cut vertex vv, such that G=G1G2G=G_{1}\cup G_{2} and V(G1)V(G2)={v}V(G_{1})\cap V(G_{2})=\{v\}. If HG(G1)\operatorname{HG}(G_{1})\leq\ell and HG2(G2)\operatorname{HG}_{2}(G_{2})\leq\ell, then HG(G)\operatorname{HG}(G)\leq\ell.

Proof.

We show that the adversary wins the hat guessing game on GG when +1\ell+1 colors are available at each vertex. Let Γ={Γv:vV(G)}\Gamma=\{\Gamma_{v}:v\in V(G)\} be a fixed guessing strategy on GG. Note that since vv is a cut vertex, the guess of each vertex of V(G1){v}V(G_{1})\setminus\{v\} depends entirely on the colors assigned to V(G1)V(G_{1}). Since HG(G1)\operatorname{HG}(G_{1})\leq\ell, the adversary has at least one hat assignment on G1G_{1} that causes all players at V(G1){v}V(G_{1})\setminus\{v\} to guess incorrectly when following Γ\Gamma. Let KK be the set of all such hat assignments on G1G_{1} that cause all players at V(G1){v}V(G_{1})\setminus\{v\} to guess incorrectly.

Now, let AA be the set of colorings of NG1(v)N_{G_{1}}(v) that can be extended to a coloring in KK. (In other words, AA is the set of colorings in KK restricted to NG1(v)N_{G_{1}}(v).) We claim that for some coloring αA\alpha\in A, there are at least two colors γ\gamma such that the coloring α\alpha can be extended to a coloring φK\varphi\in K for which φ(v)=γ\varphi(v)=\gamma. Indeed, suppose that for every αA\alpha\in A, there is a unique color γα\gamma_{\alpha} such that α\alpha can be extended to an assignment φK\varphi\in K for which φ(v)=γα\varphi(v)=\gamma_{\alpha}. Then we claim that the players have a winning strategy on G1G_{1} with +1\ell+1 colors, as follows. Given a hat assignment φ\varphi on G1G_{1}, the players at V(G1){v}V(G_{1})\setminus\{v\} follow the strategy Γ\Gamma. We write α\alpha for the coloring of NG1(v)N_{G_{1}}(v) under φ\varphi, and if αA\alpha\in A, then vv guesses γα\gamma_{\alpha}; otherwise, vv guesses the least-valued available color. If φ\varphi is winning for the adversary, then every player at V(G1){v}V(G_{1})\setminus\{v\} guesses incorrectly, so φK\varphi\in K, and φ\varphi determines a coloring αA\alpha\in A. Then, there exists a unique color γα\gamma_{\alpha} such that α\alpha can be extended to a coloring in KK in which φ(v)=γα\varphi(v)=\gamma_{\alpha}; hence, φ(v)=γα\varphi(v)=\gamma_{\alpha}, and the player at vv guesses correctly. Since the players have a winning strategy on G1G_{1} with +1\ell+1 colors, the assumption that HG(G1)\operatorname{HG}(G_{1})\leq\ell is contradicted. Therefore, for some coloring αA\alpha\in A, there are two colors γ1,γ2\gamma_{1},\gamma_{2} such that the coloring α\alpha can be extended to colorings φ1,φ2K\varphi_{1},\varphi_{2}\in K for which φ1(v)=γ1\varphi_{1}(v)=\gamma_{1} and φ2(v)=γ2\varphi_{2}(v)=\gamma_{2}.

We can now show a winning hat assignment for the adversary. First, the adversary chooses two hat assignments φ1,φ2K\varphi_{1},\varphi_{2}\in K for V(G1)V(G_{1}) so that φ1\varphi_{1} and φ2\varphi_{2} agree on NG1(v)N_{G_{1}}(v) but not on vv. We write φ1(v)=γ1\varphi_{1}(v)=\gamma_{1} and φ2(v)=γ2\varphi_{2}(v)=\gamma_{2}. The adversary commits to using either φ1\varphi_{1} or φ2\varphi_{2} on V(G1)V(G_{1}). Next, we observe that as a coloring α\alpha of NG1(v)N_{G_{1}}(v) has been fixed by φ1\varphi_{1} and φ2\varphi_{2}, Γ\Gamma determines a unique guessing strategy for the vertices of G2G_{2} that depends only on the hat colors at V(G2)V(G_{2}). We also observe that two colors are available to the adversary at vv and that +1\ell+1 colors are available to the adversary at each other vertex of V(G2){v}V(G_{2})\setminus\{v\}. Since HG2(G2)\operatorname{HG}_{2}(G_{2})\leq\ell, it follows from Lemma 3.1 that the adversary may choose some hat assignment ψ\psi on V(G2)V(G_{2}) so that ψ(v){γ1,γ2}\psi(v)\in\{\gamma_{1},\gamma_{2}\} and so that all vertices of G2G_{2} guess incorrectly. Writing ψ(v)=γi\psi(v)=\gamma_{i}, we then see that ψφi\psi\cup\varphi_{i} is a hat assignment on GG that causes all players in V(G)V(G) to make an incorrect guess.

Hence, the adversary has a winning hat assignment on GG when +1\ell+1 vertices are available at each vertex, and thus HG(G)<+1\operatorname{HG}(G)<\ell+1. This completes the proof. ∎

Now, we are ready for the key lemma of this subsection.

Lemma 3.3.

Let GG be a graph with blocks B1,,BkB_{1},\dots,B_{k}. If HG2(Bi)\operatorname{HG}_{2}(B_{i})\leq\ell for each block BiB_{i}, then HG(G)\operatorname{HG}(G)\leq\ell.

Proof.

If GG is 22-connected, then by assumption, HG(G)HG2(G)\operatorname{HG}(G)\leq\operatorname{HG}_{2}(G)\leq\ell, and we are done. Otherwise, we assume without loss of generality that GG is connected and induct on the number of blocks in GG. Suppose that GG has k>1k>1 blocks. Let BB be a terminal block of GG, that is, a block of GG containing a single cut vertex vv. Let A1,,AtA_{1},\dots,A_{t} be maximal connected subgraphs of GG in which vv is not a cut vertex, and write At=BA_{t}=B. Since vv is a cut vertex of GG, it follows that t2t\geq 2, and V(Ai)V(Aj)={v}V(A_{i})\cap V(A_{j})=\{v\} for any distinct pair i,j{1,,t}i,j\in\{1,\dots,t\}. We then let G=A1At1G^{\prime}=A_{1}\cup\dots\cup A_{t-1}, and GG^{\prime} is connected with fewer than kk blocks.

By the induction hypothesis, HG(G)\operatorname{HG}(G^{\prime})\leq\ell, and by our assumption, HG2(B)\operatorname{HG}_{2}(B)\leq\ell. Thus, by Lemma 3.2, the hat guessing number of GG is at most \ell. This completes induction and the proof. ∎

Lemma 3.3 seems to have the potential for broad application in the study of the hat guessing game. For instance, one can use the lemma to prove that a cactus graph GG satisfies HG(G)16\operatorname{HG}(G)\leq 16 after observing that HG2(C)<6e\operatorname{HG}_{2}(C)<6e for every cycle CC by Lemma 2.1.

3.2. Proof of Theorem 1.2

With Lemma 3.3 in place, we are ready to begin the proof of Theorem 1.2. In our proof, we repeatedly use the notion of treedepth, defined as follows. Given a rooted tree TT with root rr, the height of a vertex vV(T)v\in V(T) is the distance in TT from rr to vv. Then, the height of TT is the maximum height of a vertex in TT. We say that the closure of TT is the graph on V(T)V(T) obtained by adding an edge between every ancestor-descendant pair in TT. We write cl(T)\operatorname{cl}(T) for the closure of TT. Then, we say that a graph GG has treedepth at most dd if GG is a subgraph of cl(T)\operatorname{cl}(T) for some rooted tree TT of height d1d-1. The reason for this “off by one” discrepancy is that in a rooted tree of height d1d-1, a maximum length path from the root to a leaf contains exactly dd vertices. In [12], He and Li show that graphs of bounded treedepth also have bounded hat guessing number.

First, we establish two lemmas that relate the circumference of a graph to its treedepth. The first of these lemmas is a classical lemma of Dirac that follows straightforwardly from Menger’s theorem.

Lemma 3.4 ([5]).

If GG is a two-connected graph with a path of length \ell, then GG contains a cycle of length greater than 2\sqrt{2\ell}.

From Lemma 3.4, we see that in a two-connected graph of circumference cc, every path has length less than 12c2\frac{1}{2}c^{2}. Using this fact, we prove our next lemma.

Lemma 3.5.

If GG is a two-connected graph of circumference cc, then the treedepth of GG is at most 12c2\frac{1}{2}c^{2}.

Proof.

We choose a vertex rV(G)r\in V(G), and we obtain a rooted tree TGT\subseteq G by performing a depth-first search from rr. Since TT is obtained from a depth-first search, every edge of GG joins an ancestor-descendant pair in TT. Hence, GG is a subgraph of cl(T)\operatorname{cl}(T). By Lemma 3.4, the maximum distance in TT from rr to a leaf of TT is at most 12c21\frac{1}{2}c^{2}-1, so the treedepth of GG is at most 12c2\frac{1}{2}c^{2}. ∎

From Lemma 3.5, it follows that in a graph GG of bounded circumference, every block BB of GG has bounded treedepth. Hence, if we show that HG2(B)\operatorname{HG}_{2}(B) is bounded for each block BB of GG, then it follows from Lemma 3.3 that HG(G)\operatorname{HG}(G) is bounded.

With this in mind, we aim to show that for graphs HH of bounded treedepth, HG2(H)\operatorname{HG}_{2}(H) is also bounded. This can be achieved by following a method of He and Li [12], originally used to bound the hat guessing number of graphs of bounded treedepth in the traditional hat guessing game with single guesses. He and Li consider the recursively defined sequence

sn+1=1+i=0nsn,s0=1,s_{n+1}=1+\prod_{i=0}^{n}s_{n},\indent s_{0}=1,

which is commonly known as Sylvester’s sequence, and they show that given a rooted tree TT, in order for the adversary to defeat the players on cl(T)\operatorname{cl}(T), it is enough for the adversary to have st+1s_{t+1} colors available for each vertex at height tt, for each t0t\geq 0. Since a graph of treedepth dd is a subgraph of the closure of a rooted tree TT whose vertices achieve a maximum height of d1d-1, it then follows that the hat guessing number of a graph of treedepth dd is less than sds_{d}.

For the modified game in which each player is allowed ss guesses, we consider the recursively defined sequence

as,n+1=1+si=0nas,i,as,0=1.a_{s,n+1}=1+s\prod_{i=0}^{n}a_{s,i},\indent a_{s,0}=1.

By closely following the methods of [10], we obtain the following closed form for each value as,na_{s,n}.

Lemma 3.6.

For each value s1s\geq 1, there exists a constant θs1.0213(s+12)\theta_{s}\approx 1.0213\left(s+\frac{1}{2}\right) such that for all n1n\geq 1,

as,n<(θs)2n1+12.a_{s,n}<(\theta_{s})^{2^{n-1}}+\frac{1}{2}.
Proof.

To simplify notation, we let ss be fixed, and we write an=as,na_{n}=a_{s,n}. For each n0n\geq 0, we define bn=an12b_{n}=a_{n}-\frac{1}{2}. Then, we observe that for all n1n\geq 1,

an=1+si=0n1ai=1+an+11an,a_{n}=1+s\prod_{i=0}^{n-1}a_{i}=1+\frac{a_{n+1}-1}{a_{n}},

which simplifies to an+112=an2an+12a_{n+1}-\frac{1}{2}=a_{n}^{2}-a_{n}+\frac{1}{2}. After substitution, bn+1=bn2+14b_{n+1}=b_{n}^{2}+\frac{1}{4}.

Next, for each n0n\geq 0, we define θn=(bn+1)2n\theta_{n}=(b_{n+1})^{2^{-n}}. Golomb [10] shows that the limit θ=limnθn\theta=\lim_{n\rightarrow\infty}\theta_{n} exists. Furthermore, for n1n\geq 1,

θn=(bn2+14)2n=(bn)2n+1(1+14bn2)2n=θn1(1+14bn2)2n.\theta_{n}=\left(b_{n}^{2}+\frac{1}{4}\right)^{2^{-n}}=(b_{n})^{2^{-n+1}}\left(1+\frac{1}{4b_{n}^{2}}\right)^{2^{-n}}=\theta_{n-1}\left(1+\frac{1}{4b_{n}^{2}}\right)^{2^{-n}}.

Therefore, for all n0n\geq 0,

θn=θ0i=1n(1+14bi2)2i=(s+12)i=1n(1+14bi2)2i.\theta_{n}=\theta_{0}\prod_{i=1}^{n}\left(1+\frac{1}{4b_{i}^{2}}\right)^{2^{-i}}=\left(s+\frac{1}{2}\right)\prod_{i=1}^{n}\left(1+\frac{1}{4b_{i}^{2}}\right)^{2^{-i}}.

A computation shows that θ=limnθn1.0213(s+12)\theta=\lim_{n\rightarrow\infty}\theta_{n}\approx 1.0213\left(s+\frac{1}{2}\right), and furthermore, θn<θ\theta_{n}<\theta for all n0n\geq 0. Therefore, for all n1n\geq 1,

an=bn+12=(θn1)2n1+12<θ2n1+12.a_{n}=b_{n}+\frac{1}{2}=(\theta_{n-1})^{2^{n-1}}+\frac{1}{2}<\theta^{2^{n-1}}+\frac{1}{2}.

Now, by following the method of He and Li [12], we show that a graph of treedepth dd has hat guessing number less than as,da_{s,d} in the game with ss guesses, as follows.

Theorem 3.7.

If GG is a graph of treedepth dd, then HGs(G)<as,d\operatorname{HG}_{s}(G)<a_{s,d}.

Proof.

Again, to simplify notation, we let ss be fixed, and we write at=as,ta_{t}=a_{s,t} for all t0t\geq 0. We aim to show that if TT is a rooted tree of height d1d-1, then HGs(cl(T))<ad\operatorname{HG}_{s}(\operatorname{cl}(T))<a_{d}. In order to do this, we will actually prove a stronger result. We will show by induction on |V(T)||V(T)| that the adversary has a winning hat assignment on cl(T)\operatorname{cl}(T) as long as there are at+1a_{t+1} colors available at each vertex of height tt, for each t0t\geq 0. Since the vertices of TT achieve a height of at most d1d-1, this is enough to prove the theorem.

If |V(T)|=1|V(T)|=1, then T=cl(T)T=\operatorname{cl}(T) has a single vertex rr at height 0. Since a1=s+1a_{1}=s+1 and since rr only has ss guesses, the adversary can assign a color to rr that is not guessed and win the game.

Next, suppose that |V(T)|>1|V(T)|>1. Assume that a hat guessing strategy is fixed on cl(T)\operatorname{cl}(T). For each t0t\geq 0, we fix a list of at+1a_{t+1} colors at each vertex of TT at height tt. Now, let vv be a leaf of TT at height k1k\geq 1. We write u1,,uku_{1},\dots,u_{k} for the descendants of vv at heights 0,,k10,\dots,k-1, respectively. Since vv is adjacent in cl(T)\operatorname{cl}(T) exactly to u1,,uku_{1},\dots,u_{k}, and since the total number of colorings of the set {u1,,uk}\{u_{1},\dots,u_{k}\} is at most P:=a1akP:=a_{1}\dots a_{k}, each of which determines ss guesses at vv, it follows that the ss guesses made at vv comes from a set of at most sPsP colors. However, since the adversary has ak+1=1+sPa_{k+1}=1+sP colors available at vv, the adversary can assign vv a color γ\gamma that vv will not guess. Hence, the adversary colors vv with γ\gamma, and vv does not guess its hat color correctly.

Now, with γ\gamma fixed at vv, the players have a unique hat guessing strategy on cl(T{v})\operatorname{cl}(T\setminus\{v\}). However, by the induction hypothesis, the adversary has a winning hat assignment on cl(T{v})\operatorname{cl}(T\setminus\{v\}) with the available colors at each vertex. Therefore, the adversary can complete a winning coloring on V(T)V(T) and win the game, and it follows that HGs(cl(T))<ad\operatorname{HG}_{s}(\operatorname{cl}(T))<a_{d}. ∎

With all of these tools in place, we can now finish the proof of Theorem 1.2. Let BB be a block of GG. Since BB is two-connected, the treedepth of BB is at most 12c2\lfloor\frac{1}{2}c^{2}\rfloor by Lemma 3.5. Therefore, by Theorem 3.7, HG2(B)<a2,d\operatorname{HG}_{2}(B)<a_{2,d}, with d=12c2d=\lfloor\frac{1}{2}c^{2}\rfloor. Then, by applying Lemma 3.3, we know that HG(G)<a2,d\operatorname{HG}(G)<a_{2,d}. Then, by Lemma 3.6, a2,d<(θ2)2d1<(6425)2d1a_{2,d}<(\theta_{2})^{2^{d-1}}<\left(\frac{64}{25}\right)^{2^{d-1}}, and the proof is complete.

4. Open questions

While we showed that the graphs that forbid a tree TT as a subgraph have bounded hat guessing number, it is still open whether the graphs that forbid a general subgraph HH as a subgraph have bounded hat guessing number. We suspect that if HH contains a cycle, then there exists a graph GG with no subgraph isomorphic to HH for which the hat guessing number of GG is arbitrarily large, and we pose the following question:

Question 4.1.

Is it true that the graphs with HH as forbidden subgraph have bounded hat guessing number if and only if HH is acyclic?

If Question 4.1 has a positive answer, then it would be analagous to the well-known fact that the graphs that forbid HH as a subgraph have bounded chromatic number if and only if HH is acyclic (see e.g. [1]). One possible way to settle Question 4.1 would be to show an affirmative answer to the following question, which was asked by He, Ido, and Przybocki [11]:

Question 4.2.

Do there exist graphs with arbitrarily large girth and hat guessing number?

If Question 4.2 has an affirmative answer, then for any graph HH with at least one cycle, one can construct a family of graphs with no copy of HH as a subgraph and with arbitrarily large hat guessing number by considering those graphs GG with girth larger than the girth of HH, which would give a positive answer to Question 4.1.

On the other hand, if Question 4.2 has a negative answer, it would be natural to ask if any particular cycle length is necessary in a graph family of unbounded hat guessing number. For instance, must a graph of sufficiently large hat guessing number contain a 44-cycle? Gadouleau and Georgiou [9] have shown that HG(Kn,nn)>n\operatorname{HG}(K_{n,n^{n}})>n, so evidently no odd cycle is necessary in a family of graphs of unbounded hat guessing number, but no construction exists for graphs of arbitrarily large hat guessing number that contain no 44-cycle. In fact, based on current knowledge, graphs of sufficiently large hat guessing number may necessarily contain a cycle of every even length up to some value.

References

  • [1] Maria Axenovich, Jonathan Rollin, and Torsten Ueckerdt. Chromatic number of ordered graphs with forbidden ordered subgraphs. Combinatorica, 38(5):1021–1043, 2018.
  • [2] Bartł omiej Bosek, Andrzej Dudek, MichałFarnik, Jarosł aw Grytczuk, and Przemysł aw Mazur. Hat chromatic number of graphs. Discrete Math., 344(12):Paper No. 112620, 10, 2021.
  • [3] Peter Bradshaw. On the hat guessing number of a planar graph class. J. Combin. Theory Ser. B, 156:174–193, 2022.
  • [4] Steve Butler, Mohammad T. Hajiaghayi, Robert D. Kleinberg, and Tom Leighton. Hat guessing games. SIAM J. Discrete Math., 22(2):592–605, 2008.
  • [5] G. A. Dirac. Some theorems on abstract graphs. Proc. London Math. Soc. (3), 2:69–81, 1952.
  • [6] P. Erdős and T. Gallai. On maximal paths and circuits of graphs. Acta Math. Acad. Sci. Hungar., 10:337–356 (unbound insert), 1959.
  • [7] Michał Farnik. A hat guessing game. PhD thesis, Jagiellonian University, 2015.
  • [8] Uriel Feige. You can leave your hat on (if you guess its color). Technical report, Weizmann Institute, 2004.
  • [9] Maximilien Gadouleau and Nicholas Georgiou. New constructions and bounds for Winkler’s hat game. SIAM J. Discrete Math., 29(2):823–834, 2015.
  • [10] Solomon W. Golomb. On certain nonlinear recurring sequences. Amer. Math. Monthly, 70:403–405, 1963.
  • [11] Xiaoyu He, Yuzu Ido, and Benjamin Przybocki. Hat guessing on books and windmills. Electron. J. Combin., 29(1):Paper No. 1.12, 19, 2022.
  • [12] Xiaoyu He and Ray Li. Hat guessing numbers of degenerate graphs. Electron. J. Combin., 27(3):Paper No. 3.58, 9, 2020.
  • [13] Charlotte Knierim, Anders Martinsson, and Raphael Steiner. Hat guessing numbers of strongly degenerate graphs. SIAM J. Discrete Math., 37(2):1331–1347, 2023.
  • [14] K. P. Kokhas and A. S. Latyshev. Cliques and constructors in the “hats” game. I. Zap. Nauchn. Sem. S.-Peterburg. Otdel. Mat. Inst. Steklov. (POMI), 488:66–96, 2019.
  • [15] Peter Winkler. Games people don’t play. In David Wolfe and Tom Rodgers, editors, Puzzlers’ Tribute: A Feast for the Mind, chapter 10, pages 301–313. A K Peters, Baltimore, 2002.