Skip to main content
QUICK REVIEW

[Paper Review] Drawing Binary Tanglegrams: An Experimental Evaluation

Martin Nöllenburg, Danny Holten|ArXiv.org|Jun 5, 2008
Data Visualization and AnalyticsComputer Science9 references5 citations
TL;DR

This paper evaluates and improves algorithms for minimizing edge crossings in binary tanglegrams—pairs of binary trees with matched leaves—using a recursive splitting approach enhanced with branch-and-bound. The improved algorithm achieves optimal or near-optimal crossing reduction in under 0.4 seconds for up to 200 leaves, outperforming heuristics and integer quadratic programming in solution quality, while hierarchy sort remains fastest for interactive use on large or non-binary tanglegrams.

ABSTRACT

A binary tanglegram is a pair of binary trees whose leaf sets are in one-to-one correspondence; matching leaves are connected by inter-tree edges. For applications, for example in phylogenetics or software engineering, it is required that the individual trees are drawn crossing-free. A natural optimization problem, denoted tanglegram layout problem, is thus to minimize the number of crossings between inter-tree edges. The tanglegram layout problem is NP-hard and is currently considered both in application domains and theory. In this paper we present an experimental comparison of a recursive algorithm of Buchin et al., our variant of their algorithm, the algorithm hierarchy sort of Holten and van Wijk, and an integer quadratic program that yields optimal solutions.

Motivation & Objective

  • To address the tanglegram layout problem, which minimizes crossings between inter-tree edges in binary tanglegrams while preserving planar tree drawings.
  • To compare the performance of exact and heuristic algorithms in terms of crossing reduction and running time.
  • To improve upon Buchin et al.'s recursive splitting algorithm for better results on unbalanced trees.
  • To assess the feasibility of solving the problem optimally via integer quadratic programming (IQP) for medium-sized instances.
  • To determine the trade-offs between solution quality, running time, and applicability to real-world tanglegram types (e.g., random, mutated, complete trees).

Proposed method

  • Adapted Buchin et al.'s recursive splitting algorithm with a preprocessing step to improve performance on unbalanced trees.
  • Enhanced the recursive algorithm with branch-and-bound (rec-split-bb) to accelerate convergence to optimal solutions.
  • Implemented hierarchy sort, a heuristic from Holten and van Wijk, to rapidly generate visually pleasing layouts.
  • Formulated the tanglegram layout problem as an integer quadratic program (IQP) to compute optimal solutions.
  • Used log-scale plots and median running times across four tanglegram classes (complete, random, mutated, general) to compare algorithms.
  • Measured performance on 200-leaf trees and evaluated the impact of tree height, similarity, and crossing number on runtime.

Experimental results

Research questions

  • RQ1How does the improved recursive splitting algorithm compare to the original in terms of crossing reduction and running time on unbalanced trees?
  • RQ2What is the performance trade-off between solution quality and speed for hierarchy sort, the improved recursive algorithm, and the IQP?
  • RQ3Why do mutated (similar) tanglegrams take longer to compute than random ones, despite having fewer crossings?
  • RQ4Can the IQP solve medium-sized tanglegrams (n ≤ 64) to optimality within 10 minutes, and what limits its scalability?
  • RQ5How does the running time of the branch-and-bound variant depend on tree height and preprocessing, especially compared to pure recursion?

Key findings

  • The improved recursive splitting algorithm (rec-split-improved) with branch-and-bound (rec-split-bb) achieved optimal or near-optimal crossing reduction and ran in less than 360 ms median time, with a maximum of 0.4 seconds for 200-leaf trees.
  • Hierarchy sort was the fastest algorithm, solving all instances in under 12 ms for complete trees and under 90 ms for general trees, making it suitable for interactive use.
  • The IQP solved all mutated tanglegrams (with low crossing numbers) optimally within 10 minutes, but could not prove optimality for random tanglegrams beyond n = 64 due to increasing duality gaps.
  • The running time of rec-split-bb was dominated by an O(n²h)-time preprocessing step, which was not exponential in height, unlike the naive recursive versions.
  • Mutated tanglegrams required more computation time than random ones due to deeper recursion on average, as similar tree heights increase recursion depth.
  • The naive recursive implementations (rec-split and rec-split-improved) had exponential running times in tree height, making them impractical for deep or unbalanced trees, even with preprocessing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.