# Tripod packing

In combinatorics, tripod packing is a problem of finding many disjoint tripods in a three-dimensional grid, where a tripod is an infinite polycube, the union of the grid cubes along three positive axis-aligned rays with a shared apex.
Several problems of tiling and packing tripods and related shapes were formulated in 1967 by Sherman K. Stein. Stein originally called the tripods of this problem "semicrosses", and they were also called Stein corners by Solomon W. Golomb. A collection of disjoint tripods can be represented compactly as a monotonic matrix, a square matrix whose nonzero entries increase along each row and column and whose equal nonzero entries are placed in a monotonic sequence of cells, and the problem can also be formulated in terms of finding sets of triples satisfying a compatibility condition called "2-comparability", or of finding compatible sets of triangles in a convex polygon.
The best lower bound known for the number of tripods that can have their apexes packed into an $n\times n\times n$ grid is $\Omega (n^{1.546})$, and the best upper bound is $n^{2}/\exp \Omega (\log ^{*}n)$, both expressed in big Omega notation.

## Equivalent problems

The coordinates $(x_{i},y_{i},z_{i})$ of the apexes of a solution to the tripod problem form a 2-comparable sets of triples, where two triples are defined as being 2-comparable if there are either at least two coordinates where one triple is smaller than the other, or at least two coordinates where one triple is larger than the other. This condition ensures that the tripods defined from these triples do not have intersecting rays.
Another equivalent two-dimensional version of the question asks how many cells of an $n\times n$ array of square cells (indexed from $1$ to $n$) can be filled in by the numbers from $1$ to $n$ in such a way that the non-empty cells of each row and each column of the array form strictly increasing sequences of numbers, and the positions holding each value $i$ form a monotonic chain within the array. An array with these properties is called a monotonic matrix. A collection of disjoint tripods with apexes $(x_{i},y_{i},z_{i})$ can be transformed into a monotonic matrix by placing the number $z_{i}$ in array cell $(x_{i},y_{i})$ and vice versa.
The problem is also equivalent to finding as many triangles as possible among the vertices of a convex polygon, such that no two triangles that share a vertex have nested angles at that vertex. This triangle-counting problem was posed by Peter Braß and its equivalence to tripod packing was observed by Aronov et al.

## Lower bounds

It is straightforward to find a solution to the tripod packing problem with $\Omega (n^{3/2})$ tripods. For instance, for $k=\lfloor {\sqrt {n}}\rfloor$, the $\Omega (n^{3/2})$ triples ${\bigl \(ak+b+1,bk+c+1,ak+c+1){\big |}a,b,c\in [0,k-1]{\bigr \}}$ are 2-comparable.
After several earlier improvements to this naïve bound, Gowers and Long found solutions to the tripod problem of cardinality $\Omega (n^{1.546})$.

## Upper bounds

From any solution to the tripod packing problem, one can derive a balanced tripartite graph whose vertices are three copies of the numbers from $0$ to $n-1$ (one for each of the three coordinates) with a triangle of edges connecting the three vertices corresponding to the coordinates of the apex of each tripod. There are no other triangles in these graphs (they are locally linear graphs) because any other triangle would lead to a violation of 2-comparability. Therefore, by the known upper bounds to the Ruzsa–Szemerédi problem (one version of which is to find the maximum density of edges in a balanced tripartite locally linear graph), the maximum number of disjoint tripods that can be packed in an $n\times n\times n$ grid is $o(n^{2})$, and more precisely $n^{2}/\exp \Omega (\log ^{*}n)$. Although Tiskin writes that "tighter analysis of the parameters" can produce a bound that is less than quadratic by a polylogarithmic factor, he does not supply details and his proof that the number is $o(n^{2})$ uses only the same techniques that are known for the Ruzsa–Szemerédi problem, so this stronger claim appears to be a mistake.
An argument of Dean Hickerson shows that, because tripods cannot pack space with constant density, the same is true for analogous problems in higher dimensions.

## Small instances

For small instances of the tripod problem, the exact solution is known. The numbers of tripods that can be packed into an $n\times n\times n$ cube, for $n\leq 11$, are:
For instance, the figure shows the 11 tripods that can be packed into a $5\times 5\times 5$ cube.
The number of distinct monotonic matrices of order $n$, for $n=1,2,3,\dots$ is