Combinatorics - 0

This entry will attempt some problems from Yufei Zhao’s additive combinatorics and graph theory course (available at MIT-OCW), along with some asymptotic warmups and a geometric problem of Erdos.

Notation

Throughout, N={1,2,3,}\mathbb{N} = \{1,2,3,\dots\} and [N]={1,,N}[N] = \{1,\dots,N\}. For the base case below, let [0][0] be empty.

1 - Schur’s Theorem: Finitary and Infinitary

Schur’s theorem (infinitary): Any coloring of N\mathbb N with finitely many colors contains a monochromatic solution to x+y=zx+y=z (qualitative).

Schur’s theorem (finitary): For every rNr\in\mathbb N, there exists N(r)NN(r)\in\mathbb N such that when [N(r)][N(r)] is colored arbitrarily with rr colors, there exist x,y,z[N(r)]x,y,z\in[N(r)], all of the same color, such that x+y=zx+y=z.

Let us pay attention to the subtlety here: the finitary form says that, if you pick a finite number of colors, there exists some large NN that only depends on the number of colors, such that any coloring of [N][N] with these many colors contains a monochromatic x+y=zx+y=z.

It is very clear that the finitary version implies the infinitary version. Assume the finitary version is true, and now color N\mathbb N arbitrarily with, say, rr colors. Of course the finitary version lets us find a monochromatic solution to x+y=zx+y=z somewhere in the inherited coloring of [N(r)][N(r)].

Now suppose the finitary version is false.

Suppose rNr\in\mathbb N (and fix it). If the finitary version is false, then for each NNN\in\mathbb N, there exists a coloring ϕN ⁣:[N][r]\phi_N\colon[N]\to[r] for which there is no monochromatic solution to x+y=zx+y=z in [N][N].

Consider the sequence S0=ϕ1,ϕ2,S_0=\phi_1,\phi_2,\dots. Construct a new function ϕ ⁣:N[r]\phi\colon\mathbb N\to[r] inductively.

We maintain the following claim:

For each n0n\ge0, there exist nested subsequences S0S1SnS_0\leftarrow S_1\leftarrow\cdots\leftarrow S_n such that whenever ϕi,ϕjSt\phi_i,\phi_j\in S_t have [t][t] in their domains, ϕi[t]=ϕj[t]\phi_i|[t]=\phi_j|[t]. That is, StS_t is the subsequence of St1S_{t-1} that stabilizes the image of [t][t] (with S0S_0 being the original sequence).

We shall prove this by induction. The base case n=0n=0 is immediate, since [0][0] is empty.

Suppose the claim holds for some n0n\ge0. It is sufficient to show that there exists a subsequence Sn+1S_{n+1} of SnS_n that stabilizes ϕx[n+1]\phi_x|[n+1].

Notice that there are finitely many ϕxSn\phi_x\in S_n for which [n+1][n+1] is not contained in the domain of ϕx\phi_x. Drop them, and obtain a subsequence SnS'_n of SnS_n.

Now there must be some subsequence Sn+1S_{n+1} of SnS'_n which stabilizes the color of ϕx(n+1)\phi_x(n+1). Thus, together, the colorings in Sn+1S_{n+1} stabilize the image of [n+1][n+1], proving the claim.

We can picture the construction as the following infinite triangular table:

              1             2             3          4       ...
phi_1      phi_1(1)
phi_2      phi_2(1)      phi_2(2)
phi_3      phi_3(1)      phi_3(2)      phi_3(3)
phi_4      phi_4(1)      phi_4(2)      phi_4(3)   phi_4(4)
  .            .             .             .          .
  .            .             .             .          .

Passing to SnS_n stabilizes the first nn columns. This is the diagonalization: at the nn-th step we settle the nn-th coordinate while preserving all the coordinates settled earlier.

Now notice that whenever ϕxSn\phi_x\in S_n, ϕxS0\phi_x\in S_0 and [n][n] is a subset of ϕx\phi_x‘s domain.

Of course, ϕx\phi_x being in S0S_0 implies that there is no monochromatic solution to x+y=zx+y=z in its domain, and thus ϕx[n]\phi_x|[n] has no monochromatic solution to x+y=zx+y=z in [n][n].

Now thus, we construct ϕ ⁣:N[r]\phi\colon\mathbb N\to[r] by having ϕ(n)=ϕx(n)\phi(n)=\phi_x(n) for any ϕxSn\phi_x\in S_n. It is clear that ϕ\phi is a well-defined coloring and has no monochromatic solutions to x+y=zx+y=z.

Thus, it cannot be the case that the infinitary version is true while the finitary version is false.

Therefore, the two statements are equivalent to each other.

We have dealt with the proof of Schur’s theorem before, so we can chill.

2 - The Erdos Problem

Definition 0. We say a point x(R2)nR2nx\in(\mathbb R^2)^n\cong\mathbb R^{2n} is unital if, for any distinct i,j[n]i,j\in[n], xixjR21\lVert x_i-x_j\rVert_{\mathbb R^2}\ge1.

Definition 1. We say two unital points x,yx,y are equivalent if the sets of nn points they describe in R2\mathbb R^2 have the same diameter.

We will massage the problem down into something simpler, but first we have to show that the set of unital points has some element with lowest R2\mathbb R^2 diameter. The issue here is, of course, that the set of unital points may only get arbitrarily close to having the lowest diameter.

It is quite obvious that whatever point that is, it can be translated, and its R2\mathbb R^2 diameter is at most n1n-1: consider x=((0,0),(0,1),,(0,n1))x=((0,0),(0,1),\dots,(0,n-1)).

Any configuration with diameter greater than n1n-1 is irrelevant to the minimum. If a configuration has diameter at most n1n-1, choose its first point and translate it to the origin. Every other point then lies in [n,n]2[-n,n]^2.

Thus it is enough to look inside the compact box M={(0,0)}×([n,n]2)n1M=\{(0,0)\}\times([-n,n]^2)^{n-1}.

We claim that the function fij ⁣:MRf_{ij}\colon M\to\mathbb R given by xxixjR2x\mapsto\lVert x^i-x^j\rVert_{\mathbb R^2} is continuous.

Just for this proof, it will be easier to have the following notation: pMp\in M is written as (px1,py1,px2,py2,,pxn,pyn)(p_x^1,p_y^1,p_x^2,p_y^2,\dots,p_x^n,p_y^n).

We will make use of the following lemma. Let bxax,byay<δ|b_x-a_x|,|b_y-a_y|<\delta, and let a=(ax,ay)a=(a_x,a_y) and b=(bx,by)b=(b_x,b_y). Then ba<2δ\lVert b-a\rVert<\sqrt2\,\delta.

And another lemma: uvuv\big|\lVert u\rVert-\lVert v\rVert\big|\le\lVert u-v\rVert.

Notice u=(uv)+vu=(u-v)+v, so applying the triangle inequality gives uvuv\lVert u\rVert-\lVert v\rVert\le\lVert u-v\rVert. Similarly, v=(vu)+uv=(v-u)+u, and together we get the desired result.

Now take a δ\delta open box around pp, and some qq in it. For each kk, we have qxkpxk,qykpyk<δ|q_x^k-p_x^k|,|q_y^k-p_y^k|<\delta, and thus qkpk<2δ\lVert q^k-p^k\rVert<\sqrt2\,\delta.

Now,

fij(q)fij(p)=qjqipjpi(qjpj)(qipi)qjpj+qipi<22δ.\begin{aligned} |f_{ij}(q)-f_{ij}(p)| &=\big|\lVert q^j-q^i\rVert-\lVert p^j-p^i\rVert\big|\\ &\le\lVert(q^j-p^j)-(q^i-p^i)\rVert\\ &\le\lVert q^j-p^j\rVert+\lVert q^i-p^i\rVert\\ &<2\sqrt2\,\delta. \end{aligned}

That is, for any ϵ>0\epsilon>0, it suffices to have δ<ϵ/(22)\delta<\epsilon/(2\sqrt2).

Since each fij ⁣:MRf_{ij}\colon M\to\mathbb R is continuous, preimages of closed sets are closed. Let Mij=fij1([1,))M_{ij}=f_{ij}^{-1}([1,\infty)). Then MijM_{ij} is the closed subset of MM for which the points xi,xjR2x^i,x^j\in\mathbb R^2 satisfy xjxi1\lVert x^j-x^i\rVert\ge1.

Now notice U=i<jMijU^*=\bigcap_{i<j}M_{ij} is the closed subset of MM where each point is unital. Thus the unital points in MM form a compact set.

Now let XX be a compact set, and let fi ⁣:XRf_i\colon X\to\mathbb R be a finite collection of continuous maps. We claim that ff^*, given by xmaxifi(x)x\mapsto\max_i f_i(x), is continuous.

First, another sweet little lemma. We claim that max(ba,dc)max(d,b)max(c,a)\max(|b-a|,|d-c|)\ge|\max(d,b)-\max(c,a)|.

Let L=max(ba,dc)L=\max(|b-a|,|d-c|). Then

aLba+L,cLdc+L.a-L\le b\le a+L, \qquad c-L\le d\le c+L.

The max function has chill properties. An obvious one is that pqp\le q and mnm\le n imply max(p,m)max(q,n)\max(p,m)\le\max(q,n). Another chill property is max(x+r,y+r)=max(x,y)+r\max(x+r,y+r)=\max(x,y)+r.

Using these two properties on the inequalities above, we get max(a,c)max(b,d)+L\max(a,c)\le\max(b,d)+L and max(b,d)max(a,c)+L\max(b,d)\le\max(a,c)+L. Combining both gives the desired result.

Now, for any ϵ>0\epsilon>0, there exists a common δ>0\delta>0 such that for each ii, fi(x)fi(x0)<ϵ|f_i(x)-f_i(x_0)|<\epsilon whenever d(x,x0)<δd(x,x_0)<\delta. This common δ\delta exists because there are only finitely many functions. Therefore, maxifi(x)fi(x0)<ϵ\max_i|f_i(x)-f_i(x_0)|<\epsilon, and indeed, using induction on the previous lemma, we get f(x)f(x0)<ϵ|f^*(x)-f^*(x_0)|<\epsilon.

But now notice that the R2\mathbb R^2 diameter function from MM to R\mathbb R is the pointwise maximum of the fijf_{ij}, so it is continuous. Thus the restricted diameter function diam ⁣:UR\operatorname{diam}\colon U^*\to\mathbb R is continuous.

Of course, the image diam(U)\operatorname{diam}(U^*) is a compact subset of R\mathbb R, i.e. it is both closed and bounded. That is to say, α=inf(diam(U))\alpha=\inf(\operatorname{diam}(U^*)) exists and is in diam(U)\operatorname{diam}(U^*). Hence there exists some unital point uu for which diam(u)=α\operatorname{diam}(u)=\alpha.

Now we can discard all this machinery and state the problem without worry in its simplest form.

Consider the collection

A(n)={AR2:A=n, xy1 for all distinct x,yA}.\mathbf A(n)=\left\{A\subset\mathbb R^2:|A|=n,\ \lVert x-y\rVert\ge1\text{ for all distinct }x,y\in A\right\}.

That is, A(n)\mathbf A(n) is the collection of unital subsets of cardinality nn.

Let A(n)\mathbf A^*(n) be the subset of A(n)\mathbf A(n) where each set has the least diameter. The previous machinery shows that A(n)\mathbf A^*(n) is nonempty.

Does there exist some NNN\in\mathbb N for which, whenever n>Nn>N, every set in A(n)\mathbf A^*(n) contains a unit equilateral triangle?

This is the question as stated by Erdos. It is open, and some believe it is false.

There is a decent reframing of the problem.

Let {x1,x2,,xn}A(n)\{x_1,x_2,\dots,x_n\}\in\mathbf A^*(n). We claim there exist i,ji,j for which xixj=1\lVert x_i-x_j\rVert=1.

Otherwise every pair is more than 11 away from each other. Thus we can shrink the configuration. Formally, suppose toward contradiction that for each iji\ne j, xixj>1\lVert x_i-x_j\rVert>1. Let r=mini<jxixj>1r^*=\min_{i<j}\lVert x_i-x_j\rVert>1.

Set yi=xi/ry_i=x_i/r^*. Then yiyj=xixj/r1\lVert y_i-y_j\rVert=\lVert x_i-x_j\rVert/r^*\ge1, but the diameter of this new set is strictly smaller, a contradiction.

Thus we can take any unital set XX and assign to it its contact graph:

V(GX)=X,E(GX)={{xi,xj}:xixj=1}.V(G_X)=X, \qquad E(G_X)=\big\{\{x_i,x_j\}:\lVert x_i-x_j\rVert=1\big\}.

Thus the question becomes: is there a sufficiently large NN such that, for every n>Nn>N, the contact graph of every minimizer in A(n)\mathbf A^*(n) contains a K3K_3?

This is Erdos Problem 99.

3 - Asymptotic Notation

In the analysis of algorithms, we are mostly concerned with functions of the type f ⁣:NR+f\colon \mathbb N \to \mathbb R^+, where f(n)f(n) depicts the count of basic operations in the Word-RAM model for an input size of nn. f(n)f(n) is allowed to be real, just for relaxation.

Often ff is treated as increasing in nn; it would be kind of weird if a larger input required less computation in our model. This does not have to be literally true for every operation count, which is one reason that the eventual definition below is convenient.

Definition (Asymptotic Notation): Let f,g ⁣:NR+f,g\colon\mathbb N\to\mathbb R^+. We say f=O(g)f=O(g) if there exist C>0C>0 and N0NN_0\in\mathbb N such that f(n)Cg(n)f(n)\le Cg(n) whenever nN0n\ge N_0.

We say f=Ω(g)f=\Omega(g) if g=O(f)g=O(f), and f=Θ(g)f=\Theta(g) if both f=O(g)f=O(g) and g=O(f)g=O(f). Moreover, the family of functions {f:f=O(g)}\{f:f=O(g)\} is the class O(g)O(g). In such cases, we also write fO(g)f\in O(g).

Big-OO is quite loose: it only says that one function is eventually bounded by a constant multiple of another. Sometimes we want to say that one function becomes completely negligible next to another. We write f=o(g)f=o(g) if f(n)/g(n)0f(n)/g(n)\to0 as nn\to\infty.

Going the other way, we write f=ω(g)f=\omega(g) if g=o(f)g=o(f), or equivalently if f(n)/g(n)f(n)/g(n)\to\infty.

Finally, we write fgf\sim g if f(n)/g(n)1f(n)/g(n)\to1. That is, the two functions not only have the same rough growth, but their ratio itself settles at 11. We will also write f=(1+o(1))gf=(1+o(1))g for the same thing.

Theorem (Any polynomial power beats any logarithmic power): For any a,bR+a,b\in\mathbb R^+, log(n)a=O(nb)\log(n)^a=O(n^b). But nbO(log(n)a)n^b\ne O(\log(n)^a).

Proof: First, we will show that there is an absolute constant C>0C>0 such that log(n)aCnb\log(n)^a\le Cn^b. For n2n\ge2, notice alog(logn)logC+blogna\log(\log n)\le\log C+b\log n, or equivalently logCalog(logn)blogn\log C\ge a\log(\log n)-b\log n (exploiting the fact that log\log is increasing).

Now set g(x)=alog(logx)blogxg(x)=a\log(\log x)-b\log x for x>1x>1. We claim that g(x)g(x) has an absolute maximum. Indeed, g(x)=1x(alogxb)g'(x)=\frac1x\left(\frac{a}{\log x}-b\right).

Notice that g(x)=0g'(x)=0 at x=ea/bx=e^{a/b}, and for x<ea/bx<e^{a/b}, g(x)>0g'(x)>0, while for x>ea/bx>e^{a/b}, g(x)<0g'(x)<0. Hence g(ea/b)g(e^{a/b}) is the absolute maximum of gg. It is sufficient to set logCg(ea/b)\log C\ge g(e^{a/b}) (and enlarge CC if we want to include the finitely many small values of nn).

Now, we will show that there is no absolute constant D>0D>0 such that nbD(logn)an^b\le D(\log n)^a eventually. Again, blognlogD+alog(logn)b\log n\le\log D+a\log(\log n) would imply logDblognalog(logn)=g(n)\log D\ge b\log n-a\log(\log n)=-g(n).

Notice that g(x)-g(x) is unbounded as xx\to\infty, so no such DD exists. \square

Asymptotics Exercises

2. Find a simple, tight asymptotic bound for (n6006)\binom{n}{6006}.

Solution: Definition yields n(n1)(n6005)n(n-1)\cdots(n-6005) in the numerator (a degree 60066006 polynomial) and 6006!6006! in the denominator (constant with respect to nn). So (n6006)=Θ(n6006)\binom{n}{6006}=\Theta(n^{6006}).


3. Find a simple, tight asymptotic bound for log6006((log(nn))2)\log_{6006}\left(\left(\log\left(n^{\sqrt n}\right)\right)^2\right).

Solution: Recall exponent and logarithm rules: log(ab)=loga+logb\log(ab)=\log a+\log b, log(ab)=bloga\log(a^b)=b\log a, and logab=logb/loga\log_a b=\log b/\log a.

log6006((log(nn))2)=2log6006log(nlogn)=Θ(logn1/2+loglogn)=Θ(logn).\begin{aligned} \log_{6006}\left(\left(\log\left(n^{\sqrt n}\right)\right)^2\right) &=\frac{2}{\log6006}\log(\sqrt n\log n)\\ &=\Theta(\log n^{1/2}+\log\log n)\\ &=\Theta(\log n). \end{aligned}

4. Show that 2n+1Θ(2n)2^{n+1}\in\Theta(2^n), but that 22n+1O(22n)2^{2^{n+1}}\notin O(2^{2^n}).

Solution: In the first case, 2n+1=22n2^{n+1}=2\cdot2^n, which is a constant factor larger than 2n2^n. In the second case, 22n+1=(22n)22^{2^{n+1}}=\left(2^{2^n}\right)^2, which is definitely more than a constant factor larger than 22n2^{2^n}.


5. Show that (logn)a=O(nb)(\log n)^a=O(n^b) for all positive constants aa and bb.

Solution: It is enough to show that nb/(logn)an^b/(\log n)^a limits to \infty, and this is equivalent to arguing that the log of this expression approaches \infty:

limnlog(nb(logn)a)=limn(blognaloglogn)=limx(bxalogx)=,\begin{aligned} \lim_{n\to\infty}\log\left(\frac{n^b}{(\log n)^a}\right) &=\lim_{n\to\infty}(b\log n-a\log\log n)\\ &=\lim_{x\to\infty}(bx-a\log x)\\ &=\infty, \end{aligned}

as desired.

Note: for the same reasons, na=O(cn)n^a=O(c^n) for any c>1c>1.


6. Show that (logn)logn=Ω(n)(\log n)^{\log n}=\Omega(n).

Solution: Note that mm=Ω(2m)m^m=\Omega(2^m), so setting n=2mn=2^m completes the proof.


7. Show that (6n)!Θ(n!)(6n)!\notin\Theta(n!), but that log((6n)!)Θ(log(n!))\log((6n)!)\in\Theta(\log(n!)).

Solution: We invoke Stirling’s approximation,

n!=2πn(ne)n(1+Θ(1n)).n!=\sqrt{2\pi n}\left(\frac ne\right)^n\left(1+\Theta\left(\frac1n\right)\right).

Substituting in 6n6n gives an expression whose ratio to n!n! grows without bound. But taking the logarithm of Stirling’s approximation gives log(n!)=Θ(nlogn)\log(n!)=\Theta(n\log n), and substituting in 6n6n yields only constant additional factors.

Asymptotic Analysis Using Limits

Using the eventual definition of big-OO notation, we have the following proposition.

Proposition (Finite limiting ratio and asymptotics): Let f,g ⁣:NR+f,g\colon\mathbb N\to\mathbb R^+. If limnf(n)/g(n)=C>0\lim_{n\to\infty}f(n)/g(n)=C>0, then f=Θ(g)f=\Theta(g), and in particular f=O(g)f=O(g).

Proof: Notice that for each ϵ>0\epsilon>0 there exists N(ϵ)N(\epsilon) such that, when n>N(ϵ)n>N(\epsilon), f(n)/g(n)C<ϵ\left|f(n)/g(n)-C\right|<\epsilon.

Rearranging, and choosing any small epsilon that we like :), we have (Cϵ)g(n)<f(n)<(C+ϵ)g(n)(C-\epsilon)g(n)<f(n)<(C+\epsilon)g(n) eventually. Choosing 0<ϵ<C0<\epsilon<C gives both comparisons, and hence f=Θ(g)f=\Theta(g). \square

Notice that f=O(g)f=O(g) does not say too much about limits, and is well defined when neither ff nor gg converges. It only says that f/gf/g is eventually bounded above. In particular, its limit superior is finite, though the ratio itself need not have a limit.