All-Pairs LCA in DAGs: Breaking through the O(n2:5) barrier

被引:0
|
作者
Grandoni, Fabrizio [1 ]
Italiano, Giuseppe F. [2 ]
Lukasiewicz, Aleksander [3 ]
Parotsidis, Nikos [4 ]
Uznanskil, Przemyslaw [3 ]
机构
[1] IDSIA, Lugano, Switzerland
[2] LUISS Univ, Rome, Italy
[3] Univ Wroclaw, Wroclaw, Poland
[4] Google Res, Zurich, Switzerland
关键词
LOWEST COMMON ANCESTORS; ALGORITHMS; SEQUENCE;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Let G = (V,E) be an n-vertex directed acyclic graph (DAG). A lowest common ancestor (LCA) of two vertices u and v is a common ancestor w of u and v such that no descendant of w has the same property. In this paper, we consider the problem of computing an LCA, if any, for all pairs of vertices in a DAG. The fastest known algorithms for this problem exploit fast matrix multiplication subroutines and have running times ranging from O(n(2.687)) [Bender et al. SODA'01] down to O(n(2.615)) [Kowaluk and Lingas ICALP'05] and O(n(2.569)) [Czumaj et al. TCS'07]. Somewhat surprisingly, all those bounds would still be Omega(n(2.5)) even if matrix multiplication could be solved optimally (i.e., w = 2). This appears to be an inherent barrier for all the currently known approaches, which raises the natural question on whether one could break through the O(n(2.5)) barrier for this problem. In this paper, we answer this question affirmatively: in particular, we present an (O) over tilde (n(2.447)) ((O) over tilde (n(7/3)) for w = 2) algorithm for finding an LCA for all pairs of vertices in a DAG, which represents the first improvement on the running times for this problem in the last 13 years. A key tool in our approach is a fast algorithm to partition the vertex set of the transitive closure of G into a collection of O(l) chains and O(n/l) antichains, for a given parameter. As usual, a chain is a path while an antichain is an independent set. We then find, for all pairs of vertices, a candidate LCA among the chain and antichain vertices, separately. The first set is obtained via a reduction to (max; min) matrix multiplication. The computation of the second set can be reduced to Boolean matrix multiplication similarly to previous results on this problem. We finally combine the two solutions together in a careful (non-obvious) manner.
引用
收藏
页码:273 / 289
页数:17
相关论文
共 50 条
  • [41] The effect of N2 flow rate in He/O2/N2 on the characteristics of large area pin-to-plate dielectric barrier discharge
    Lee, YH
    Kyung, SJ
    Jeong, CH
    Yeom, GY
    JAPANESE JOURNAL OF APPLIED PHYSICS PART 2-LETTERS & EXPRESS LETTERS, 2005, 44 (1-7): : L78 - L81
  • [42] ABINITIO CHARACTERIZATION OF THE HIGH-BARRIER ADIABATIC PATHWAY FOR THE O+(N2,N)NO+ REACTION
    HOPPER, DG
    BULLETIN OF THE AMERICAN PHYSICAL SOCIETY, 1980, 25 (02): : 108 - 108
  • [43] An O(n(3) log log n/log(2) n) time algorithm for all pairs shortest paths
    Han, Yijie
    Takaoka, Tadao
    JOURNAL OF DISCRETE ALGORITHMS, 2016, 38-41 : 9 - 19
  • [44] A surface mechanism for O3 production with N2 addition in dielectric barrier discharges
    Meyer, Mackenzie
    Foster, John
    Kushner, Mark J.
    PLASMA SOURCES SCIENCE & TECHNOLOGY, 2023, 32 (08):
  • [45] An O(n3(log log n/log n)5/4) time algorithm for all pairs shortest path
    Han, Yijie
    ALGORITHMICA, 2008, 51 (04) : 428 - 434
  • [46] An O(n3(log log n/log n)5/4) Time Algorithm for All Pairs Shortest Path
    Yijie Han
    Algorithmica, 2008, 51 : 428 - 434
  • [47] An O(n3(log log n/log n)5/4) time algorithm for all pairs shortest paths
    Han, Yijie
    ALGORITHMS - ESA 2006, PROCEEDINGS, 2006, 4168 : 411 - 417
  • [48] Exploring the mechanisms leading to diffuse and filamentary modes in dielectric barrier discharges in N2 with N2O admixtures
    Hoeft, Hans
    Becker, Markus M.
    Kettlitz, Manfred
    Dap, Simon
    Naude, Nicolas
    Brandenburg, Ronny
    Weltmann, Klaus-Dieter
    EUROPEAN PHYSICAL JOURNAL D, 2023, 77 (03):
  • [49] The bidirectional character of O2 concentration in pulsed dielectric barrier discharges in O2/N2 gas mixtures
    Hoeft, H.
    Kettlitz, M.
    Weltmann, K-D
    Brandenburg, R.
    JOURNAL OF PHYSICS D-APPLIED PHYSICS, 2014, 47 (45)
  • [50] Metastable dimer contributions to the collision-induced fundamental absorption spectra of N2 and O2 pairs
    Moreau, G
    Boissoles, J
    Le Doucen, R
    Boulet, C
    Tipping, RH
    Ma, Q
    JOURNAL OF QUANTITATIVE SPECTROSCOPY & RADIATIVE TRANSFER, 2001, 70 (01): : 99 - 113