Counting edge crossings in a 2-layered drawing

  • Authors:
  • Hiroshi Nagamochi;Nobuyasu Yamada

  • Affiliations:
  • Department of Information and Computer Sciences, Toyohashi University of Technology, Aichi 441-8580, Japan;Department of Information and Computer Sciences, Toyohashi University of Technology, Aichi 441-8580, Japan

  • Venue:
  • Information Processing Letters
  • Year:
  • 2004

Quantified Score

Hi-index 0.89

Visualization

Abstract

Given a bipartite graph G = (V, W, E) with a bipartition {V, W} of a vertex set and an edge set E, a 2-layered drawing of G in the plane means that the vertices of V and W are respectively drawn as distinct points on two parallel lines and the edges as straight line segments. We consider the problem of counting the number of edge crossings. In this paper, we design two algorithms to this problem based on the dynamic programming and divide-and-conquer approaches. These algorithms run in O(n1n2) time and O(m) space and in O(min{n1n2|E|log(min{|V|.|W|})}) time and O(m) space, respectively. Our algorithms outperform the previously fastest Θ(|E|log(min{|V|.|W|})) time algorithm for dense graphs.