Research output: Contribution to book/anthology/report/proceeding › Article in proceedings › Research › peer-review

- LIPIcs-ESA-2017-21
Final published version, 675 KB, PDF document

- https://doi.org/10.4230/LIPIcs.ESA.2017.21
Final published version

We study the problem of computing the triplet distance between two rooted unordered trees with n labeled leafs. Introduced by Dobson 1975, the triplet distance is the number of leaf triples that induce different topologies in the two trees. The current theoretically best algorithm is an O(n log n) time algorithm by Brodal et al. (SODA 2013). Recently Jansson et al. proposed a new algorithm that, while slower in theory, requiring O(n log^{3} n) time, in practice it outperforms the theoretically faster O(n log n) algorithm. Both algorithms do not scale to external memory. We present two cache oblivious algorithms that combine the best of both worlds. The first algorithm is for the case when the two input trees are binary trees and the second a generalized algorithm for two input trees of arbitrary degree. Analyzed in the RAM model, both algorithms require O(n log n) time, and in the cache oblivious model O( n /B log^{2} n/M ) I/Os. Their relative simplicity and the fact that they scale to external memory makes them achieve the best practical performance. We note that these are the first algorithms that scale to external memory, both in theory and practice, for this problem.

Original language | English |
---|---|

Title of host publication | 25th European Symposium on Algorithms, ESA 2017 |

Editors | Kirk Pruhs, Christian Sohler |

Number of pages | 14 |

Volume | 87 |

Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |

Publication year | 1 Sep 2017 |

Pages | 21:1--21:14 |

Article number | 21 |

ISBN (Electronic) | 9783959770491 |

DOIs | |

Publication status | Published - 1 Sep 2017 |

Event | 25th European Symposium on Algorithms, ESA 2017 - Vienna, Austria Duration: 4 Sep 2017 → 6 Sep 2017 |

Conference | 25th European Symposium on Algorithms, ESA 2017 |
---|---|

Land | Austria |

By | Vienna |

Periode | 04/09/2017 → 06/09/2017 |

Series | Leibniz International Proceedings in Informatics |
---|---|

Volume | 87 |

ISSN | 1868-8969 |

- Cache oblivious algorithm, Phylogenetic tree, Tree comparison, Triplet distance

See relations at Aarhus University Citationformats

No data available

ID: 118168822