Computing Quartet Distance is Equivalent to Counting 4-Cycles

11/15/2018
by   Bartłomiej Dudek, et al.
0

The quartet distance is a measure of similarity used to compare two unrooted phylogenetic trees on the same set of n leaves, defined as the number of subsets of four leaves related by a different topology in both trees. After a series of previous results, Brodal et al. [SODA 2013] presented an algorithm that computes this number in O(nd n) time, where d is the maximum degree of a node. Our main contribution is a two-way reduction establishing that the complexity of computing the quartet distance between two trees on n leaves is the same, up to polylogarithmic factors, as the complexity of counting 4-cycles in an undirected simple graph with m edges. The latter problem has been extensively studied, and the fastest known algorithm by Vassilevska Williams [SODA 2015] works in O(m^1.48) time. In fact, even for the seemingly simpler problem of detecting a 4-cycle, the best known algorithm works in O(m^4/3) time, and a conjecture of Yuster and Zwick implies that this might be optimal. In particular, an almost-linear time for computing the quartet distance would imply a surprisingly efficient algorithm for counting 4-cycles. In the other direction, by plugging in the state-of-the-art algorithms for counting 4-cycles, our reduction allows us to significantly decrease the complexity of computing the quartet distance. For trees with unbounded degrees we obtain an O(n^1.48) time algorithm, which is a substantial improvement on the previous bound of O(n^2 n). For trees with degrees bounded by d, by analysing the reduction more carefully, we are able to obtain an Õ(nd^0.77) time algorithm, which is again a nontrivial improvement on the previous bound of O(nd n).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/01/2020

Counting 4-Patterns in Permutations Is Equivalent to Counting 4-Cycles in Graphs

Permutation σ appears in permutation π if there exists a subsequence of ...
research
11/11/2020

Counting Homomorphic Cycles in Degenerate Graphs

Since computing most variants of the subgraph counting problem in genera...
research
10/11/2018

Short Cycles via Low-Diameter Decompositions

We present improved algorithms for short cycle decomposition of a graph....
research
10/16/2020

Near-Linear Time Homomorphism Counting in Bounded Degeneracy Graphs: The Barrier of Long Induced Cycles

Counting homomorphisms of a constant sized pattern graph H in an input g...
research
09/23/2017

A Simple Algorithm for Computing a Cycle Separator

We present a linear time algorithm for computing a cycle separator in a ...
research
02/13/2020

On Two Measures of Distance between Fully-Labelled Trees

The last decade brought a significant increase in the amount of data and...
research
03/01/2021

A Simple Algorithm for Optimal Search Trees with Two-Way Comparisons

We present a simple O(n^4)-time algorithm for computing optimal search t...

Please sign up or login with your details

Forgot password? Click here to reset