Deciding the Feasibility and Minimizing the Height of Tangles
Abstract
We study the following combinatorial problem. Given a set of y-monotone \emph{wires}, a \emph{tangle} determines the order of the wires on a number of horizontal \emph{layers} such that the orders of the wires on any two consecutive layers differ only in swaps of neighboring wires. Given a multiset~ of \emph{swaps} (that is, unordered pairs of wires) and an initial order of the wires, a tangle \emph{realizes}~ if each pair of wires changes its order exactly as many times as specified by~. \textsc{List-Feasibility} is the problem of finding a tangle that realizes a given list~ if such a tangle exists. \textsc{Tangle-Height Minimization} is the problem of finding a tangle that realizes a given list and additionally uses the minimum number of layers. \textsc{List-Feasibility} (and therefore \textsc{Tangle-Height Minimization}) is NP-hard [Yamanaka, Horiyama, Uno, Wasa; CCCG 2018]. We prove that \textsc{List-Feasibility} remains NP-hard if every pair of wires swaps only a constant number of times. On the positive side, we present an algorithm for \textsc{Tangle-Height Minimization} that computes an optimal tangle for wires and a given list~ of swaps in time, where is the golden ratio and is the total number of swaps in~. From this algorithm, we derive a simpler and faster version to solve \textsc{List-Feasibility}. We also use the algorithm to show that \textsc{List-Feasibility} is in NP and fixed-parameter tractable with respect to the number of wires. For \emph{simple} lists, where every swap occurs at most once, we show how to solve \textsc{Tangle-Height Minimization} in time.
Cite
@article{arxiv.2312.16213,
title = {Deciding the Feasibility and Minimizing the Height of Tangles},
author = {Oksana Firman and Philipp Kindermann and Boris Klemz and Alexander Ravsky and Alexander Wolff and Johannes Zink},
journal= {arXiv preprint arXiv:2312.16213},
year = {2023}
}
Comments
This work is a merger of arXiv:1901.06548 and arXiv:2002.12251