We consider two systems (alpha(1), ... ,alpha(m)) and (beta(1), ... , beta(n)) of simple curves drawn on a compact two-dimensional surface M with boundary. Each alpha(i) and each beta(j) is either an arc meeting the boundary of M at its two endpoints, or a closed curve.
The a, are pairwise disjoint except for possibly sharing endpoints, and similarly for the beta(j). We want to "untangle" the beta(j) from the alpha(i) by a self-homeomorphism of M; more precisely, we seek a homeomorphism phi: M -> M fixing the boundary of M pointwise such that the total number of crossings of the a, with the phi(beta(j)) is as small as possible.
This problem is motivated by an application in the algorithmic theory of embeddings and 3 -manifolds. We prove that if M is planar, i.e., a sphere with h >= 0 boundary components ("holes"), then O(mn) crossings can be achieved (independently of h), which is asymptotically tight, as an easy lower bound shows.
In general, for an arbitrary (orientable or nonorientable) surface M with h holes and of (orientable or nonorientable) genus g >= 0, we obtain an O((m + n)(4)) upper bound, again independent of h and g. The proofs rely, among other things, on a result concerning simultaneous planar drawings of graphs by Erten and Kobourov.