ALCOMFT-TR-03-94

ALCOM-FT
 

Wilhelm Barth, Petra Mutzel and Michael Jünger
Simple and Efficient Bilayer Crosscounting
Cologne. Work package 4. November 2003.
Abstract: We consider the Problem of counting the interior edge crossings when a bipartite graph G=(V,E) with node set V and edge set E is drawn such that the nodes of the two shores of the bipartition are drawn as distinct points on two parallel lines and the edges as straight line segments. The efficient solution of this problem is important in layered graph drawing. Our main observation is that it can be reduced to counting the inversions of certain sequences. This leads directly to an O(|E|log|V|) algorithm based on merge sorting. We present an even simpler O(|E|log|Vsmall|) algorithm, where Vsmall is the smaller cardinality node set in the bipartition of the node set V of the graph. This algorithm is very easy to implement. Our computational experiments an a large collection of instances show that it performes well in comparison to previously published algorithms, which are much more complicated to understand and implement.
Postscript file: ALCOMFT-TR-03-94.ps.gz (116 kb).

System maintainer Gerth Stølting Brodal <gerth@cs.au.dk>