English

The Single-Face Ideal Orientation Problem in Planar Graphs

Data Structures and Algorithms 2019-12-04 v2

Abstract

We consider the ideal orientation problem in planar graphs. In this problem, we are given an undirected graph GG with positive edge lengths and kk pairs of distinct vertices (s1,t1),,(sk,tk)(s_1, t_1), \dots, (s_k, t_k) called terminals, and we want to assign an orientation to each edge such that for all ii the distance from sis_i to tit_i is preserved or report that no such orientation exists. We show that the problem is NP-hard in planar graphs. On the other hand, we show that the problem is polynomial-time solvable in planar graphs when kk is fixed, the vertices s1,t1,,sk,tks_1, t_1, \dots, s_k, t_k are all on the same face, and no two of terminal pairs cross (a pair (si,ti)(s_i, t_i) crosses (sj,tj)(s_j, t_j) if the cyclic order of the vertices is si,sj,ti,tjs_i,s_j,t_i,t_j). For serial instances, we give a simpler and faster algorithm running in O(nlogn)O(n \log n) time, even if kk is part of the input. (An instance is serial if the terminals appear in cyclic order u1,v1,,uk,vku_1, v_1, \dots, u_k, v_k, where for each ii we have either (ui,vi)=(si,ti)(u_i, v_i) = (s_i, t_i) or (ui,vi)=(ti,si)(u_i, v_i) = (t_i, s_i).) Finally, we consider a generalization of the problem in which the sum of the distances from sis_i to tit_i is to be minimized; in this case we give an algorithm for serial instances running in O(kn5)O(kn^5) time.

Keywords

Cite

@article{arxiv.1908.10942,
  title  = {The Single-Face Ideal Orientation Problem in Planar Graphs},
  author = {Yipu Wang},
  journal= {arXiv preprint arXiv:1908.10942},
  year   = {2019}
}

Comments

23 pages, 11 figures

R2 v1 2026-06-23T10:59:25.099Z