Logo
The curse of dimensionality
Overview
The curse of dimensionality

The curse of dimensionality

November 19, 2025
6 min read
1 subpost

Finding the diameter of a 22-dimensional centre disk

Exercise (Finding the diameter of a 22-dimensional centre disk)

Given a unit square, place 44 disks in the square, one in each corner such that all the disks are as large as possible, of equal size, and without intersecting. Then place a 5th disk in the centre (equidistant from the four disks) such that it is as large as possible, without intersecting. Find the diameter of the centre disk.

Answer
212=0.207.\frac{\sqrt{2}-1}{2} = 0.207\dots.
Proof (Geometric Approach)

Creating the structure we have:

Figure 1.

Drawing a line through the diagonal of the square, we find that the length of the line is 2\sqrt2.

Figure 2.

Intuition

Notice that drawing a line diagonally through the square slices the centre disk in half. The length of the whole line is 2\sqrt2, and intuitively you can solve this by cutting off the pieces of the diagonal line which are outside of the centre disk, which leaves you with the diameter of the centre disk. Another way of thinking about this is in terms of vectors; since the diagonal line is one long vector, we can scale it down by multiplying it by some constant CC, where CRC \in \R, so that its length matches the centre disks diameter. i.e. C2C\sqrt2.

Figure 3.

If we look at Figure 1 \space more globally, with say, a 3×33 \times 3 matrix, we get:

Figure 4.

Notice that within the 3×33\times3 matrix, there exist gaps that we can fill.

Figure 5.

Important

Notice two facts: The gaps we filled are being sliced through the centre, vertically and horizontally, and are of equal size to the centre disk. These two facts will help us reach the solution.

Looking at Figure 2  \spacewe can see that part of the diagonal line crosses through empty space. We can calculate the length of that empty space by looking at Figure 6. \space 1/41/4th of the disk we filled takes up the space of the corners. The two empty spaces sum to the diameter of the centre disk across the diagonal line. Because our line contains two diameters of the centre disk, we can divide 2\sqrt2 by 22 to get closer to the diameter of the centre disk.

22=Length of diagonal line (minus the empty space).\frac{\sqrt2}{2} = \text{Length of diagonal line (minus the empty space)}.

Looking at Figure 2, (the half intersected disks), notice that two larger disks (top right and bottom left disks) are also intersected through the centre. The length of each disk is 1/2,1/2, and so subtracting that from our current diagonal line (minus the empty space) would give us the diameter of the centre disk.

2(12+12)2=212=0.207\begin{aligned} \frac{\sqrt{2} - \left(\frac12 + \frac12\right)}{2} = \frac{\sqrt{2} - 1}{2} = 0.207\dots \tag*{$\blacksquare$} \end{aligned}

Now that we’ve solved the 22-dimensional case, how exactly would we approach the 33-dimensional case, 44-dimensional case, or even the general case? (i.e., the nn-dimensional case). By studying the invariants.

33-dimensional case

Example (Finding the diameter of a 33-dimensional centre disk)

We’ll solve this by seeing what invariants remain when moving from the 2-dimensional case to the 3-dimensional case.

Recall

The diameter of the centre disk in 2D2D is

212.\frac{\sqrt{2}-1}{2}.

2\sqrt2  \space calculates the length of the diagonal of the square. \newline 21\sqrt2-1  \space subtracts the two larger disks length (top right and bottom left) from the squares diagonal. \newline 2/2\sqrt2/2  \space removes the duplicate diameter from the two empty spaces.

Being able to replicate what these evaluate to in 33D is our goal. Calculating the diagonal of a cube follows from the 3-dimensional case of Pythagorean theorem

d=x2+y2+z2,d=\sqrt{x^2+y^2+z^2},

where x,y,zRx,y,z \in \R such that dR0.d\in\R_{\geq 0}.

Note

Pythagoreans theorem also generalises to nn-dimensions.

Evaluating Pythagoreans theorem in 3D3D (for a unit-cube) returns d=12+12+12=3,d=\sqrt{1^2+1^2+1^2}=\sqrt3, and so the length of the diagonal of a unit-cube is 3.\sqrt3. Suprisingly subtracting the two larger balls in 3D3D is the same in 3D3D as it is in 2D2D, we are still using unit squares/cubes and so the ratios for this and the duplicate diameter remain the same. Thus the diameter for n=3n=3 is:

312.\frac{\sqrt 3-1}{2}. \tag*{$\blacksquare$}

Summary of n=2n=2 and n=3n=3

Before we tackle the nn-dimensional case, let’s compare some properties from case n=2n=2 and n=3.n=3.

Summary

The formula for n=2n=2  \space and n=3n=3  \space are very similar, all that’s changed is the number under the square root.

212=centre disk diameter for n=2.\frac{\sqrt 2-1}{2} = \text{centre disk diameter for $n=2$.}312=centre disk diameter for n=3.\frac{\sqrt 3-1}{2} = \text{centre disk diameter for $n=3$.}Of course,  312>212.\text{Of course,}\space\space \frac{\sqrt 3-1}{2} > \frac{\sqrt 2-1}{2}.
Dimensionno. of ballsno. of corners in nn-cube
225544
339988

We know that the values we subtract from the length of the diagonal in the formula won’t change for any dimension, so our answer will look something like this:

something12,\frac{\text{something}-1}{2},

where something\text{something} is the length of the diagonal of an mm-cube. And so all we have to do is prove Pythagoreans theorem generalises to nn-dimensions.

Pythagoreans theorem in nn-dimensions

Lemma (Pythagoreans theorem in mm-dimensions)
x12+x22+x32+,+xm=y2,x_1^2+x_2^2+x_3^2+\dots,+x^m=y^2,

where x=(x1,x2,,xm)Rx=(x_1,x_2,\dots,x_m)\in\R and y=x12+x22++xm.y=\sqrt{x_1^2+x_2^2+\dots+x_m}.

Exercise (Prove Pythagoreans theorem generalises to mm-dimensions)
Exercise for the reader. \begin{aligned} \text{Exercise for the reader.} \tag*{$\blacksquare$} \end{aligned}

Now that we’ve proved Pythagoreans theorem generalises to nn-dimensions, we’ve solved the problem.

Diameter of the central mm-ball among corner mm-balls in Rn\mathbb{R}^n

Theorem (Diameter of the central mm-ball among corner mm-balls in Rn\mathbb{R}^n)

Given an mm-dimensional unit cube, for any mZ+m\in \Z^+, place one mm-ball in each corner of the mm-cube (2m2^m corners) such that all the mm-balls are as large as possible, of equal size, and without intersecting. Then in the centre of the mm-cube place one more ball such that it is as large as possible, and tangent to all other corner balls. Then the centre ball’s diameter is:

m12.\frac{\sqrt{m}-1}2.

Observations

Now that we have a generalised formula let’s look at some properties across the dimensions in more detail.

Dimension (mm)mm-balls (m2+1)(m^2+1)Corners (m2)(m^2)Center mm-ball diameter (m12)\left(\tfrac{\sqrt{m}-1}{2}\right)
11221100
2255440.2070.207\ldots
331010990.3660.366\ldots
44171716161/21/2
55262625250.6180.618\ldots
66373736360.7240.724\ldots
77505049490.8220.822\ldots
88656564640.9140.914\ldots
998282818111
10101011011001001.0811.081\ldots

There are many things to notice here, but I’ll focus on one part. (m12)\left(\tfrac{\sqrt{m}-1}{2}\right) clearly grows without bound. Therefore,

(112)(212)(m12).\left(\tfrac{\sqrt{1}-1}{2}\right)\leq\left(\tfrac{\sqrt{2}-1}{2}\right)\leq\dots\leq\left(\tfrac{\sqrt{m}-1}{2}\right).

Looking at some cases of mm, we find that at m=4m=4, the central balls diameter is half the side length of the mm-cube, i.e., 1/2.1/2. At m=9m=9 the diameter of the center ball is equal to the side length of the mm-cube, i.e. 11, and at m=10m=10 the diameter of the center ball is greater than the side length of the mm-cube. But wait. The side length of any unit mm-cube is 1, and any m10m\geq10 results in the diameter of the center ball being greater than 11; meaning the ball sticks outside of the box it was meant to be enclosed in! So what exactly is going on here?