5 min read

Can You Get The Paper Cut?

Table of Contents

Riddler Express

Earlier this year, Dakota Jones used a crystal key to gain access to a hidden temple, deep in the Riddlerian Jungle. According to an ancient text, the crystal had exactly six edges, five of which were 11 inch long. Also, the key was the largest such polyhedron (by volume) with these edge lengths.

However, after consulting an expert, Jones realized she had the wrong translation. Instead of definitively having five edges that were 11 inch long, the crystal only needed to have four edges that were 11 inch long. In other words, five edges could have been 11 inch (or all six for that matter), but the crystal definitely had at least four edges that were 11 inch long.

The translator confirmed that the key was indeed the largest such polyhedron (by volume) with these edge lengths.

Once again, Jones needs your help. Now what is the volume of the crystal key?

Solution 1

Given the distances between the vertices of a tetrahedron the volume can be computed using the Cayley–MengerΒ determinant\textbf{Cayley–Menger determinant}:

288β‹…V2=∣0111110d122d132d1421d1220d232d2421d132d2320d3421d142d242d3420∣288\cdot V^{2}= \begin{vmatrix} 0&1&1&1&1\\\\ 1&0&d_{12}^{2}&d_{13}^{2}&d_{14}^{2}\\\\ 1&d_{12}^{2}&0&d_{23}^{2}&d_{24}^{2}\\\\ 1&d_{13}^{2}&d_{23}^{2}&0&d_{34}^{2}\\\\ 1&d_{14}^{2}&d_{24}^{2}&d_{34}^{2}&0 \end{vmatrix}

where the subscripts i,j∈1,2,3,4i, j \in \\{1, 2, 3, 4\\} represent the vertices and dijd_{ij} is the pairwise distance between them – i.e., the length of the edge connecting the two vertices.

If aa, bb, cc be the three edges that meet at a point, and x,y,zx,y,z the opposite edges. The volume VV of the tetrahedron is given by

V=4a2b2c2βˆ’a2X2βˆ’b2Y2βˆ’c2Z2+XYZ12V = \frac{\sqrt{4a^2b^2c^2-a^2X^2-b^2Y^2-c^2Z^2+XYZ}}{12}

where

X=b2+c2βˆ’x2Y=a2+c2βˆ’y2Z=a2+b2βˆ’z2\begin{aligned} X = b^2 + c^2 - x^2 \\\\ Y = a^2 + c^2 - y^2 \\\\ Z = a^2 + b^2 - z^2 \end{aligned}

In our case, let a=b=c=y=1a=b=c=y=1, we have

X=2βˆ’x2Y=1Z=2βˆ’z2\begin{aligned} X = 2 - x^2 \\\\ Y = 1 \\\\ Z = 2 - z^2 \end{aligned}

We need to find the value of xx and zz that maximizes

V=4βˆ’(2βˆ’x2)2βˆ’1βˆ’(2βˆ’z2)2+(2βˆ’x2)(2βˆ’z2)12V = \frac{\sqrt{4- (2-x^2)^2-1- (2-z^2)^2+(2-x^2)(2-z^2)}}{12}

Setting the partial derivates βˆ‚Vβˆ‚x\frac{\partial V}{\partial x} and βˆ‚Vβˆ‚z\frac{\partial V}{\partial z} to zero, we get the equations

2βˆ’2x2+z2=02βˆ’2z2+x2=0\begin{aligned} 2 - 2x^2 + z^2 = 0 \\\\ 2 - 2z^2 + x^2 = 0 \\\\ \end{aligned}

Therefore, VV attains the maximum value of 143\frac{1}{4\sqrt{3}} when x=z=2x = z = \sqrt{2}.

References

https://en.wikipedia.org/wiki/Tetrahedron

Solution 2

A polyhedron with 66 edges has to be a tetrahedron. In this particular case, we have a tetrahedron where one face is an equilateral triangle of side length 11. The volume of tetrahedron (which is a triangular pyramid where the base is an equilateral triangle) is given by

Vol=13Γ—baseΓ—height=13Γ—34Γ—height\begin{aligned} Vol &= \frac{1}{3} \times base \times height \\\\ &= \frac{1}{3} \times \frac{\sqrt{3}}{4} \times height \end{aligned}

The volume is maximized when the height is maximized i.e. when another edge of length 11 is perpendicular to the base. Therefore the volume of the crystal key is

Volmax=13Γ—34Γ—1=143.Vol_{max} = \frac{1}{3}\times \frac{\sqrt{3}}{4} \times 1 = \frac{1}{4\sqrt{3}}.

Riddler Classic

One morning, Phil was playing with my daughter, who loves to cut paper with her safety scissors. She especially likes cutting paper into β€œstrips,” which are rectangular pieces of paper whose shorter sides are at most 11 inch long.

Whenever Phil gives her a piece of standard printer paper (8.58.5 inches by 1111 inches), she picks one of the four sides at random and then cuts a 11-inch wide strip parallel to that side. Next, she discards the strip and repeats the process, picking another side at random and cutting the strip. Eventually, she is left with nothing but strips.

On average, how many cuts will she make before she is left only with strips?

Extra credit: Instead of 8.58.5 by 1111-inch paper, what if the paper measures mm by nn inches? (And for a special case of this, what if the paper is square?)

Computational Solution 1

From the Monte-Carlo\textbf{Monte-Carlo} simulation below, we see that the expected number of cuts before we are left only with strips is 14.29\textbf{14.29}.

from random import random

def avg_num_cuts_mc(m, n, runs= 1000000):
    sum_num_cuts = 0
    for _ in range(runs):
        num_cuts, cm, cn = 0, m, n
        while cm > 1 and cn > 1:
            r = random()
            if r < 0.5:
                cm -= 1
            else:
                cn -= 1
            num_cuts += 1
        sum_num_cuts += num_cuts
    return sum_num_cuts/runs

print(f"Expected number of cuts is {avg_num_cuts_mc(11, 9)}")

Computational Solution 2

We have the following recurrence relation for the expected number of cuts

C(m,n)=1+12C(mβˆ’1,n)+12C(nβˆ’1,m)C(m,n) = 1 + \frac{1}{2}C(m-1,n) + \frac{1}{2}C(n-1,m)

with initial conditions C(m,0)=C(0,n)=0C(m,0)=C(0,n)=0.

Solving the recurrence relation using memoization\textbf{memoization} we see that the expected number of cuts is indeed 14.29\textbf{14.29}.

def avg_num_cuts_rr(m, n):
    C = [[0 for _ in range(n)] for _ in range(m)]
    for i in range(1, m):
        for j in range(1, n):
            C[i][j] = 1 + 0.5*(C[i][j-1] + C[i-1][j])
    return C[m-1][n-1]

print(f"Expected number of cuts is {avg_num_cuts_rr(11, 9)}")