English

Computing Height-Optimal Tangles Faster

Discrete Mathematics 2024-01-02 v6

Abstract

We study the following combinatorial problem. Given a set of nn y-monotone wires, a tangle determines the order of the wires on a number of horizontal layers such that the orders of the wires on any two consecutive layers differ only in swaps of neighboring wires. Given a multiset LL of swaps (that is, unordered pairs of numbers between 1 and nn) and an initial order of the wires, a tangle realizes LL if each pair of wires changes its order exactly as many times as specified by LL. The aim is to find a tangle that realizes LL using the smallest number of layers. We show that this problem is NP-hard, and we give an algorithm that computes an optimal tangle for nn wires and a given list LL of swaps in O((2L/n2+1)n2/2φnn)O((2|L|/n^2+1)^{n^2/2} \cdot \varphi^n \cdot n) time, where φ1.618\varphi \approx 1.618 is the golden ratio. We can treat lists where every swap occurs at most once in O(n!φn)O(n!\varphi^n) time. We implemented the algorithm for the general case and compared it to an existing algorithm. Finally, we discuss feasibility for lists with a simple structure.

Keywords

Cite

@article{arxiv.1901.06548,
  title  = {Computing Height-Optimal Tangles Faster},
  author = {Oksana Firman and Philipp Kindermann and Alexander Ravsky and Alexander Wolff and Johannes Zink},
  journal= {arXiv preprint arXiv:1901.06548},
  year   = {2024}
}

Comments

Except for its experimental Section 4, this paper has been superseded by arXiv:2312.16213 (merged from arXiv:2002.12251 and this paper). This paper has appeared in Proceedings of the 27th International Symposium on Graph Drawing and Network Visualization (GD 2019)

R2 v1 2026-06-23T07:16:38.887Z