arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.07965math.COcs.DM
收藏

从最近公共祖先推断有向无环图和系统发育网络

Inferring DAGs and Phylogenetic Networks from Least Common Ancestors

Department of Mathematics, Stockholm University(斯德哥尔摩大学数学系);School of Computing Sciences, University of East Anglia(东英吉利大学计算科学学院)

Anna Lindeberg, Anton Alfonsson, Vincent Moulton, Guillaume E. Scholz, Marc Hellmuth

AI总结:

本文扩展了Aho等人的框架,从树到有向无环图(DAG),通过定义LCA约束的+闭包和规范DAG,解决了LCA约束在DAG中的可实现性问题,并进一步应用于系统发育网络。

摘要:

有向无环图(DAG)中两个叶子的最近公共祖先(LCA)是一个顶点,它是两个叶子的祖先,并且没有适当的后代也是它们的公共祖先。LCA捕捉了有根树以及更一般的DAG中的层次关系。1981年,Aho等人引入了确定一组关于集合$X$的成对LCA约束(形式为$(i,j)<(k,l)$,其中$i,j,k,l\in X$)是否可以被一棵叶集为$X$的有根树实现的问题,使得当$(i,j)<(k,l)$时,$i,j$的LCA是$k,l$的LCA的后代。他们还提出了一个多项式时间算法BUILD来解决这个问题。然而,许多这样的约束系统无法被任何树实现,这引出了它们是否可以被更一般的DAG实现的问题。我们将Aho等人的框架从树扩展到DAG,为在这一更广泛背景下推理LCA约束提供了理论和算法基础。给定一组LCA约束$R$,我们定义其$+$闭包$R^+$,捕捉由$R$隐含的额外LCA关系。利用$R^+$,我们构造一个规范DAG $G_R$,并证明$R$是DAG可实现的当且仅当它被$G_R$实现。我们进一步将此构造适应于系统发育网络,定义规范网络$N_R$,并证明它是正则的,即它与其底层集合系统的Hasse图一致。最后,我们证明对于任何DAG可实现的$R$,其经典闭包——包含所有在实现$R$的每个DAG中都成立的LCA约束——与其$+$闭包一致。所有构造都可以在多项式时间内计算,我们为每个构造提供了显式算法。本文开发的所有算法都在免费提供的Python包RealLCA中实现。

英文摘要:

A least common ancestor (LCA) of two leaves in a directed acyclic graph (DAG) is a vertex that is an ancestor of both leaves and has no proper descendant that is also their common ancestor. LCAs capture hierarchical relationships in rooted trees and, more generally, in DAGs. In 1981, Aho et al. introduced the problem of determining whether a set of pairwise LCA constraints on a set $X$, of the form $(i,j)<(k,l)$ with $i,j,k,l\in X$, can be realized by a rooted tree whose leaf set is $X$, such that whenever $(i,j)<(k,l)$, the LCA of $i,j$ is a descendant of that of $k,l$. They also presented a polynomial-time algorithm, BUILD, to solve this problem. However, many such constraint systems cannot be realized by any tree, prompting the question of whether they can be realized by a more general DAG. We extend Aho et al.'s framework from trees to DAGs, providing both theoretical and algorithmic foundations for reasoning about LCA constraints in this broader setting. Given a collection $R$ of LCA constraints, we define its $+$-closure $R^+$, capturing additional LCA relations implied by $R$. Using $R^+$, we construct a canonical DAG $G_R$ and prove that $R$ is DAG-realizable if and only if it is realized by $G_R$. We further adapt this construction to phylogenetic networks, defining a canonical network $N_R$ and prove that it is regular, i.e., it coincides with the Hasse diagram of its underlying set system. Finally, we show that for any DAG-realizable $R$, its classical closure - comprising all LCA constraints that hold in every DAG realizing $R$ - coincides with its $+$-closure. All constructions are computable in polynomial time, and we provide explicit algorithms for each. All algorithms developed in this paper are implemented in the freely available Python package RealLCA.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑