Ponder This

Welcome to our monthly puzzles.
You are cordially invited to match wits with some of the best minds in IBM Research.

November 2024 - Solution

<< October

November 2024 Challenge


November 2024 Solution:

The solutions are [177, 245, 137, 280, 217, 69]

and [345, 252, 245, 94, 102, 9]

A common way to solve the puzzle is through the expansion of the Cayley-Menger determinant

288 V^2 =
\begin{vmatrix}
0 & 1 & 1 & 1 & 1\\
1 & 0 & d_{12}^2 & d_{13}^2 & d_{14}^2\\
1 & d_{21}^2 & 0 & d_{23}^2 & d_{24}^2\\
1 & d_{31}^2 & d_{32}^2 & 0 & d_{34}^2\\
1 & d_{41}^2 & d_{42}^2 & d_{43}^2 & 0\\
\end{vmatrix}

Many solvers had problems due to the limits of floating point precision computations. An interesting example arises for the "solution" [1,x,x,x-1,x-1,2] which gives the determinant - 32 for every value of x, but when using numpy's determinat method yields 255.99999991524982 for x = 524283. It was better to avoid numpy's implementation and use the [Bareiss algorithm] which allows one to use only integer operations, or even compute the determinant naively using recursion on minors.