NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Optimal Algorithm for Strict Circular Seriation

Santiago Armstrong, Cristóbal Guzmán, Carlos A. Sing-Long · DOI

Introduction

Seriation is a classic problem in exploratory data analysis: given a matrix of pairwise dissimilarities between $n$ objects, the goal is to find an ordering such that similar items are positioned close to one another. While traditional seriation assumes a linear continuum—common in fields like archaeology for dating artifacts—many real-world datasets, such as circular bacterial genomes in bioinformatics or images in planar tomography, naturally form a closed loop.

While linear seriation is well-understood with optimal $\mathcal{O}(n^2)$ algorithms, circular seriation has historically lacked a robust mathematical framework. Previous definitions of "circular Robinson matrices" were often cumbersome or led to NP-hard optimization problems. This paper introduces a clean, unimodality-based definition and an efficient algorithm to solve the strict version of the circular seriation problem.

Defining Circular Robinson Matrices

The authors' primary contribution to the framework is a definition of circular Robinson matrices centered on unimodality. In a circular Robinson matrix, if one examines any row and wraps around the columns (modulo $n$), the dissimilarity values monotonically increase to a maximum and then monotonically decrease. This property ensures the ordering is naturally invariant to cyclic shifts, a necessary condition for circular data.

Comparison of a linear Robinson matrix (left) and a circular Robinson matrix (right). Note the wrap-around similarity in the circular case.

As illustrated in Figure 1, a linear Robinson matrix (left) shows increasing dissimilarity as one moves away from the diagonal. In contrast, a circular Robinson matrix (right) exhibits low dissimilarity at the corners, reflecting the proximity of the first and last elements in a circular arrangement.

The Recursive Divide-and-Conquer Algorithm

The paper presents a mathematically optimal $\mathcal{O}(n^2)$ algorithm for strict circular Robinson matrices—those where monotonic changes are strict and contain no ties. The algorithm leverages $PQ$-trees, a data structure designed to represent families of permutations.

The core of the algorithm relies on the "stickiness" of nearest neighbors: in a strict Robinson matrix, an object's nearest neighbor is guaranteed to be adjacent to it in the final circular order. The process involves:

  1. Finding Nearest Neighbors: Recursively identifying pairs of objects with minimal dissimilarity.
  2. Merging Chains: Merging these pairs into ordered chains, represented as $Q$-nodes in the $PQ$-tree.
  3. Orienting Chains: Determining the correct orientation (forward or backward) of these chains by comparing their boundary elements.

Because the algorithm only requires reading the $n \times n$ input matrix once, its $\mathcal{O}(n^2)$ complexity is strictly optimal.

Statistical Convergence

To bridge the gap between discrete algorithms and continuous reality, the authors analyze a generative model where $n$ points are sampled uniformly from a continuous unit circle. They prove that as $n$ grows, the recovered discrete order converges to the true underlying continuous circular structure. Specifically, the expected Kendall-tau distance between the algorithm's output and the true order shrinks at a rate of $\mathcal{O}(\log(n)/n)$. This result demonstrates that the discrete circular Robinson property is a well-posed proxy for continuous circular geometry.

Conclusion and Future Work

This work provides a rigorous foundation for circular seriation, offering both an optimal algorithm and statistical guarantees. However, the current approach is limited by its requirement for strict Robinsonian structures and its lack of noise tolerance. In practice, real-world data often contains ties or measurement noise, the latter of which makes the problem NP-hard. Future research will likely focus on extending these optimal methods to handle non-strict matrices and developing robust approximations for noisy datasets.

Summary updated

BibTeX
@article{armstrong2021optimal,
  author = {Santiago Armstrong and Cristóbal Guzmán and Carlos A. Sing-Long},
  title = {{An Optimal Algorithm for Strict Circular Seriation}},
  journal = {SIAM J. Math. Data Sci.},
  year = {2021},
  doi = {10.1137/21m139356x},
}
Figure