arXiv:2610.40027cs.CEOct 2026

Manuscript Offprint

arXiv:2610.40027

Counting approximate breakpoint medians of random genomes

Poly H. da Silva, Arash Jamshidpey, David Sankoff

Abstract

Unsigned linear unichromosomal genomes with genes labeled 1, ..., n are represented by permutations of these labels, whose adjacencies are the unordered pairs of genes occurring consecutively. The breakpoint distance counts the adjacencies of one genome that are absent from the other, and a breakpoint median minimizes the total breakpoint distance to a given set of genomes. Deciding whether a permutation is a median often requires a minimization over the whole symmetric group, which makes the median set resistant to exact counting. We replace this global condition by a local one: a c-approximate median is a genome having at most c adjacencies absent from all the input genomes. For a fixed genome we introduce its approximate median inverse, the set of ordered k-tuples of genomes admitting it as a c-approximate median, and we construct and count this set explicitly. For k genomes chosen uniformly and independently at random, this gives the probability that a given genome is a c-approximate median and the expected number of such approximate medians. The relaxation is not only technical: approximate medians and near-optimal genomes coincide up to a shift of the tolerance that remains bounded in probability as the number of genes grows. Finally, we derive an explicit upper bound on the probability that a given genome is an exact median, and on the expected number of exact breakpoint medians.

keyword: Random permutation, breakpoint median, median inverse.

1 Introduction

A simple but effective way to measure gene-order dissimilarity between two genomes is to count their breakpoints. A breakpoint of a genome G with respect to another genome G′G' is a pair of genes that are adjacent in G but not in G′G'. For genomes with the same gene content, the breakpoint distance is the number of such breakpoints. Given a distance d on a space of genomes, a median of genomes G1,…,GkG_1, \ldots, G_k is a genome minimizing the total distance function ∑i=1kd(⋅,Gi)\sum_{i=1}^{k} d(\cdot, G_i). The breakpoint median problem, introduced in [14], is the case in which d is the breakpoint distance.

∗^{*}Email: arash.jamshidpey@berkeley.edu

Medians are often employed to reconstruct gene-order evolutionary histories in the small phylogeny problem, in which ancestral genomes at the internal vertices of a given phylogenetic tree are inferred from genomes observed at its leaves. Under suitable evolutionary conditions, approximate medians, genomes whose total distance to the input genomes is close to the minimum, can provide useful estimates of ancestral gene orders (see [9, 7, 10] for mathematical studies), while also capturing genetic similarities shared among the input genomes. Their reliability for ancestral inference, however, depends on the degree of evolutionary divergence, since the ancestral genome may cease to be an approximate median beyond an initial low-divergence regime [9, 10, 13]. Despite their importance, finding and constructing medians can be challenging [3, 12]. In fact, the median problem is NP-hard for several genomic distances, including the breakpoint distance on unsigned unichromosomal genomes [1, 2, 15, 5]. Moreover, the breakpoint median need not be unique. Simulation studies indicate that distinct median solutions may be widely separated and may tend toward the input genomes as evolutionary divergence among the input genomes increases [6]. Recent algorithmic work [4] further illustrates this multiplicity and diversity through numerical examples in which approximate and exact breakpoint medians of triples of random genomes are enumerated and their distance profiles relative to the input genomes are examined. These observations motivate studying the size and structure of the exact and approximate breakpoint median sets, both as a combinatorial object and in ancestral genome inference.

Motivated by these questions, we formulate the problem in a combinatorial and probabilistic setting. Labeling the genes by [n]:={1,…,n}[n] := \{1, \ldots, n\}, we represent a linear unichromosomal genome of size nn by a permutation of [n][n]. We denote by SnS_n the set of all permutations of [n][n], or equivalently, the set of all such genomes with gene content [n][n]. Let ξ1(n),…,ξk(n)\xi_1^{(n)}, \ldots, \xi_k^{(n)} be chosen uniformly and independently at random from SnS_n, and let M\mathcal{M} denote the set of their breakpoint medians. For a given set A⊆SnA \subseteq S_n, one may ask for the probability P(A⊆M)\mathbb{P}(A \subseteq \mathcal{M}). For sets AA containing more than one genome, this probability depends on their relative configuration, including their mutual breakpoint distances, and the problem becomes considerably more involved. In this paper, we take a first step toward this general problem by focusing on the singleton case A={x}A = \{x\}, that is, on the probability that a given permutation xx belongs to M\mathcal{M}. Even the singleton case leads to a substantial combinatorial counting problem. We introduce the median inverse and obtain upper bounds for P(x∈M)\mathbb{P}(x \in \mathcal{M}), x∈Snx \in S_n, through a tractable relaxation based on approximate medians, which we also show to be the near-optimal solutions of the median problem. By the left-invariance of the breakpoint distance and the uniform distribution of the input permutations, the singleton probability is the same for every x∈Snx \in S_n. Consequently, E∣M∣=n!\mathbb{E}|\mathcal{M}| = n! P(x∈M)\mathbb{P}(x \in \mathcal{M}), so upper bounds for the singleton probability also yield upper bounds for the expected number of breakpoint medians.

For a fixed kk, the median inverse of a permutation π∈Sn\pi \in S_n is the set of all ordered kk-tuples (y1,…,yk)(y_1, \ldots, y_k) of permutations in SnS_n for which π\pi is an exact breakpoint median. An exact median may contain adjacencies that are absent from all the input genomes. We show, however, that the number of such adjacencies admits an explicit upper bound and that, for random input genomes, this bound stays bounded in probability, and is therefore negligible compared with the n−1n-1 adjacencies of a genome. This motivates the notion of a cc-approximate breakpoint median, defined as a genome having at most cc adjacencies absent from all the inputs. For a suitably growing tolerance c=cnc = c_n, the corresponding approximate median set contains every exact median with high probability and therefore provides an explicitly countable outer approximation of the exact median set. We also show that approximate medians are of interest in their own right: they are precisely the near-optimal solutions of the median problem, up to a shift of the tolerance that is bounded in probability for random genomes. Similarly, for a fixed permutation π\pi, we define its cc-approximate median inverse as the set of all ordered kk-tuples of genomes for which π\pi is a cc-approximate median. We construct and count this set and use it to determine the probability that a given genome is a cc-approximate median of kk uniformly and independently chosen random genomes and to derive an explicit expression for the expected number of approximate medians. For exact medians we derive an explicit upper bound on the probability that a given genome is an exact median and on the expected number of exact breakpoint medians, which in particular shows that this probability tends to zero faster than any exponential in nn, at an explicit rate. Our framework also provides a constructive procedure for generating approximate medians with prescribed breakpoint distances, together with a dynamic-programming procedure for exact evaluation of the counting formula, with complexity bound and numerical illustration.

The paper is organized as follows. Section 2 introduces the main definitions, including the median and segment sets, and Section 3 overviews the main results. Section 4 contains the principal theoretical and counting results. We first consider genomes with maximum or near-maximum pairwise breakpoint distances and count ordered k-tuples for which every adjacency of a given permutation occurs in at least one input genome. This special case motivates the general framework of Theorems 1–5. Theorem 1 bounds the number of adjacencies of an exact median, absent from all inputs, and Theorem 2 gives the asymptotic behavior of this bound for random genomes. Theorem 3 identifies approximate medians with the near-optimal solutions of the median problem. Theorems 4 and 5 give the probability that a fixed permutation is a c-approximate median of k independent uniform random genomes, and the expected number of such approximate medians, and Theorem 6 gives explicit upper bounds for the corresponding quantities for exact medians. Finally, Theorem 7 compares the sizes of the exact and approximate median sets for random genomes. Section 5 concludes the paper with a discussion of the results.