3,829 research outputs found

    Orthogonal Graph Drawing with Inflexible Edges

    Full text link
    We consider the problem of creating plane orthogonal drawings of 4-planar graphs (planar graphs with maximum degree 4) with constraints on the number of bends per edge. More precisely, we have a flexibility function assigning to each edge ee a natural number flex(e)\mathrm{flex}(e), its flexibility. The problem FlexDraw asks whether there exists an orthogonal drawing such that each edge ee has at most flex(e)\mathrm{flex}(e) bends. It is known that FlexDraw is NP-hard if flex(e)=0\mathrm{flex}(e) = 0 for every edge ee. On the other hand, FlexDraw can be solved efficiently if flex(e)1\mathrm{flex}(e) \ge 1 and is trivial if flex(e)2\mathrm{flex}(e) \ge 2 for every edge ee. To close the gap between the NP-hardness for flex(e)=0\mathrm{flex}(e) = 0 and the efficient algorithm for flex(e)1\mathrm{flex}(e) \ge 1, we investigate the computational complexity of FlexDraw in case only few edges are inflexible (i.e., have flexibility~00). We show that for any ε>0\varepsilon > 0 FlexDraw is NP-complete for instances with O(nε)O(n^\varepsilon) inflexible edges with pairwise distance Ω(n1ε)\Omega(n^{1-\varepsilon}) (including the case where they induce a matching). On the other hand, we give an FPT-algorithm with running time O(2knTflow(n))O(2^k\cdot n \cdot T_{\mathrm{flow}}(n)), where Tflow(n)T_{\mathrm{flow}}(n) is the time necessary to compute a maximum flow in a planar flow network with multiple sources and sinks, and kk is the number of inflexible edges having at least one endpoint of degree 4.Comment: 23 pages, 5 figure

    Single Source - All Sinks Max Flows in Planar Digraphs

    Full text link
    Let G = (V,E) be a planar n-vertex digraph. Consider the problem of computing max st-flow values in G from a fixed source s to all sinks t in V\{s}. We show how to solve this problem in near-linear O(n log^3 n) time. Previously, no better solution was known than running a single-source single-sink max flow algorithm n-1 times, giving a total time bound of O(n^2 log n) with the algorithm of Borradaile and Klein. An important implication is that all-pairs max st-flow values in G can be computed in near-quadratic time. This is close to optimal as the output size is Theta(n^2). We give a quadratic lower bound on the number of distinct max flow values and an Omega(n^3) lower bound for the total size of all min cut-sets. This distinguishes the problem from the undirected case where the number of distinct max flow values is O(n). Previous to our result, no algorithm which could solve the all-pairs max flow values problem faster than the time of Theta(n^2) max-flow computations for every planar digraph was known. This result is accompanied with a data structure that reports min cut-sets. For fixed s and all t, after O(n^{3/2} log^{3/2} n) preprocessing time, it can report the set of arcs C crossing a min st-cut in time roughly proportional to the size of C.Comment: 25 pages, 4 figures; extended abstract appeared in FOCS 201
    corecore