The weighted \emph{Sitting Closer to Friends than Enemies} (SCFE) problem is to find an injection of the vertex set of a given weighted graph into a given metric space so that, for every pair of incident edges with different weight, the end vertices of the heavier edge are closer than the end vertices of the lighter edge. The \emph{Seriation} problem is to find a simultaneous reordering of the rows and columns of a symmetric matrix such that the entries are monotone nondecreasing in rows and columns when moving towards the diagonal. If such a reordering exists, it is called a \emph{Robinson} ordering. In this work, we establish a connection between the SCFE problem and the Seriation problem. We show that if the \emph{extended adjacency matrix} of a given weighted graph $G$ has no Robinson ordering then $G$ has no injection in $\mathbb{R}$ that solves the SCFE problem. On the other hand, if the extended adjacency matrix of $G$ has a Robinson ordering, we construct a polyhedron that is not empty if and only if there is an injection of the vertex set of $G$ in $\mathbb{R}$ that solves the SCFE problem. As a consequence of these results, we conclude that deciding the existence of (and constructing) such an injection in $\mathbb{R}$ for a given \emph{complete} weighted graph can be done in polynomial time. On the other hand, we show that deciding if an \emph{incomplete} weighted graph has such an injection in $\mathbb{R}$ is NP-Complete.
翻译:加权 {emph{Seriation} 问题是找到一个同时重新排序行和对称矩阵的列, 这样条目在移动到对角时, 将给定的加权图形的顶端 插入到给定的测量空间中, 这样对于每对具有不同重量的事故边缘来说, 最重边缘的末端的顶部比较轻边缘的末端的顶端更近。 问题在于找到同时重新排序给定的加权图形$G$的正弦值和列的对称矩阵, 这样在移动到对角时, 在行和列中, 其结果为单点不解 。 如果这种重新排序, 它被称为\emph{Robinson} 的顶端边缘与较轻边缘的端端端端端的端端脊。 如果给定的加权图形$G$没有调价, $G$ 没有输入 $\ mb{R} 的顶端值, 那么在对 SCFE 的底部的内端端值, 也只能做出这样的直角 。