中文
相关论文

相关论文: An O(n^3)-Time Algorithm for Tree Edit Distance

200 篇论文

Path partition problems on trees have found various applications. In this paper, we present an $O(n \log n)$ time algorithm for solving the following variant of path partition problem: given a rooted tree of $n$ nodes $1, \ldots, n$, where…

数据结构与算法 · 计算机科学 2025-03-17 Ruixi Luo , Taikun Zhu , Kai Jin

We study the problem of finding a temporal hybridization network for a set of phylogenetic trees that minimizes the number of reticulations. First, we introduce an FPT algorithm for this problem on an arbitrary set of $m$ binary trees with…

数据结构与算法 · 计算机科学 2022-11-09 Sander Borst , Leo van Iersel , Mark Jones , Steven Kelk

An L(2,1)-labeling of a graph $G$ is an assignment $f$ from the vertex set $V(G)$ to the set of nonnegative integers such that $|f(x)-f(y)|\ge 2$ if $x$ and $y$ are adjacent and $|f(x)-f(y)|\ge 1$ if $x$ and $y$ are at distance 2, for all…

数据结构与算法 · 计算机科学 2010-11-25 Toru Hasunuma , Toshimasa Ishii , Hirotaka Ono , Yushi Uno

We study the NP-hard problem of approximating a Minimum Routing Cost Spanning Tree in the message passing model with limited bandwidth (CONGEST model). In this problem one tries to find a spanning tree of a graph $G$ over $n$ nodes that…

分布式、并行与集群计算 · 计算机科学 2014-06-06 Alexandra Hochuli , Stephan Holzer , Roger Wattenhofer

We consider the problem of finding the smallest graph that contains two input trees each with at most $n$ vertices preserving their distances. In other words, we look for an isometric-universal graph with the minimum number of vertices for…

数据结构与算法 · 计算机科学 2025-06-17 Edgar Baucher , François Dross , Cyril Gavoille

Treedepth is a central parameter to algorithmic graph theory. The current state-of-the-art in computing and approximating treedepth consists of a $2^{O(k^2)} n$-time exact algorithm and a polynomial-time $O(\text{OPT} \log^{3/2}…

计算复杂性 · 计算机科学 2025-07-21 Édouard Bonnet , Daniel Neuen , Marek Sokołowski

This paper addresses the problem of finding a representation of a subtree distance, which is an extension of the tree metric. We show that a minimal representation is uniquely determined by a given subtree distance, and give a linear time…

数据结构与算法 · 计算机科学 2019-02-26 Takanori Maehara , Kazutoshi Ando

We give an algorithm that, given an $n$-vertex graph $G$ and an integer $k$, in time $2^{O(k)} n$ either outputs a tree decomposition of $G$ of width at most $2k + 1$ or determines that the treewidth of $G$ is larger than $k$. This is the…

数据结构与算法 · 计算机科学 2023-08-24 Tuukka Korhonen

The tree inclusion problem is, given two node-labeled trees $P$ and $T$ (the ``pattern tree'' and the ``target tree''), to locate every minimal subtree in $T$ (if any) that can be obtained by applying a sequence of node insertion operations…

数据结构与算法 · 计算机科学 2021-06-16 Tatsuya Akutsu , Jesper Jansson , Ruiming Li , Atsuhiro Takasu , Takeyuki Tamura

The {Congested Clique} is a distributed-computing model for single-hop networks with restricted bandwidth that has been very intensively studied recently. It models a network by an $n$-vertex graph in which any pair of vertices can…

分布式、并行与集群计算 · 计算机科学 2018-02-21 Leonid Barenboim , Victor Khazanov

Recently we presented the first algorithm for maintaining the set of nodes reachable from a source node in a directed graph that is modified by edge deletions with $o(mn)$ total update time, where $m$ is the number of edges and $n$ is the…

数据结构与算法 · 计算机科学 2016-12-13 Monika Henzinger , Sebastian Krinninger , Danupon Nanongkai

Motivated by an application in computational topology, we consider a novel variant of the problem of efficiently maintaining dynamic rooted trees. This variant requires merging two paths in a single operation. In contrast to the standard…

数据结构与算法 · 计算机科学 2007-11-13 Loukas Georgiadis , Haim Kaplan , Nira Shafrir , Robert E. Tarjan , Renato F. Werneck

We present an algorithm for min-cost flow in graphs with $n$ vertices and $m$ edges, given a tree decomposition of width $\tau$ and size $S$, and polynomially bounded, integral edge capacities and costs, running in…

数据结构与算法 · 计算机科学 2024-07-02 Sally Dong , Guanghao Ye

The nni-distance is a well-known distance measure for phylogenetic trees. We construct an efficient parallel approximation algorithm for the nni-distance in the CRCW-PRAM model running in O(log n) time on O(n) processors. Given two…

数据结构与算法 · 计算机科学 2012-05-16 Mikael Gast , Mathias Hauptmann

Almost 30 years ago, Zhang and Shasha (1989) published a seminal paper describing an efficient dynamic programming algorithm computing the tree edit distance, that is, the minimum number of node deletions, insertions, and replacements that…

数据结构与算法 · 计算机科学 2022-09-15 Benjamin Paaßen

Classically, the edit distance of two length-$n$ strings can be computed in $O(n^2)$ time, whereas an $O(n^{2-\epsilon})$-time procedure would falsify the Orthogonal Vectors Hypothesis. If the edit distance does not exceed $k$, the running…

数据结构与算法 · 计算机科学 2023-11-06 Daniel Gibney , Ce Jin , Tomasz Kociumaka , Sharma V. Thankachan

We present an implementation of a recent algorithm to compute shortest-path trees in unit disk graphs in $O(n\log n)$ worst-case time, where $n$ is the number of disks. In the minimum-separation problem, we are given $n$ unit disks and two…

计算几何 · 计算机科学 2017-02-13 Sergio Cabello , Lazar Milinković

Given an undirected edge-weighted graph $G=(V,E)$ with $m$ edges and $n$ vertices, the minimum cut problem asks to find a subset of vertices $S$ such that the total weight of all edges between $S$ and $V \setminus S$ is minimized. Karger's…

数据结构与算法 · 计算机科学 2020-08-07 Paweł Gawrychowski , Shay Mozes , Oren Weimann

It is an open question whether there exists a polynomial-time algorithm for computing the rotation distances between pairs of extended ordered binary trees. The problem of computing the rotation distance between an arbitrary pair of trees,…

数据结构与算法 · 计算机科学 2020-01-20 Sean Cleary , Roland Maio

We present $O(\log^2 \log n)$ time 3-coloring, maximal independent set and maximal matching algorithms for trees in the Massively Parallel Computation (MPC) model. Our algorithms are deterministic, apply to arbitrary-degree trees and work…

分布式、并行与集群计算 · 计算机科学 2021-11-02 Rustam Latypov , Jara Uitto