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 条
  • [21] Interaction polarizability of N2 and O2 pairs molecules
    Buldakov, MA
    Cherepanov, VN
    Korolev, BV
    Matrosov, II
    EIGHTH INTERNATIONAL SYMPOSIUM ON ATMOSPHERIC AND OCEAN OPTICS: ATMOSPHERIC PHYSICS, 2002, 4678 : 1 - 8
  • [22] A Deterministic Distributed Algorithm for ExactWeighted All-Pairs Shortest Paths in (O)over-tilde (n3/2) Rounds
    Agarwal, Udit
    Ramachandran, Vijaya
    King, Valerie
    Pontecorvi, Matteo
    PODC'18: PROCEEDINGS OF THE 2018 ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING, 2018, : 199 - 205
  • [23] An O(N2) algorithm for discovering optimal boolean pattern pairs
    Bannai, H
    Hyyrö, H
    Shinohara, A
    Takeda, M
    Nakai, K
    Miyano, S
    IEEE-ACM TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS, 2004, 1 (04) : 159 - 170
  • [24] N2(A 3Σu+) density measurement in a dielectric barrier discharge in N2 and N2 with small O2 admixtures
    Dilecce, G.
    Ambrico, P. F.
    De Benedictis, S.
    PLASMA SOURCES SCIENCE & TECHNOLOGY, 2007, 16 (03): : 511 - 522
  • [25] Conversion of NO in NO/N2, NO/O2/N2, NO/C2H4/N2 and NO/C2H4/O2/N2 Systems by Dielectric Barrier Discharge Plasmas
    Ai-Min Zhu
    Qi Sun
    Jin-Hai Niu
    Yong Xu
    Zhi-Min Song
    Plasma Chemistry and Plasma Processing, 2005, 25 : 371 - 386
  • [26] Conversion of NO in NO/N2, NO/O2/N2, NO/C2H4/N2 and NO/C2H4/O2/N2 systems by dielectric barrier discharge plasmas
    Zhu, AM
    Sun, Q
    Niu, JH
    Xu, Y
    Song, ZM
    PLASMA CHEMISTRY AND PLASMA PROCESSING, 2005, 25 (04) : 371 - 386
  • [27] Detailed Characterization of 2-Heptanone Conversion by Dielectric Barrier Discharge in N2 and N2/O2 Mixtures
    Chiper, Alina Silvia
    Blin-Simiand, Nicole
    Heninger, Michel
    Mestdagh, Helene
    Boissel, Pierre
    Jorand, Francois
    Lemaire, Joel
    Leprovost, Julien
    Pasquiers, Stephane
    Popa, Gheorghe
    Postel, Christian
    JOURNAL OF PHYSICAL CHEMISTRY A, 2010, 114 (01): : 397 - 407
  • [28] Nox formation in dielectric barrier discharge over CuZSM-5 catalyst in N2/O2.
    Zhu, AM
    Song, Q
    Niu, JH
    Xu, Y
    Yang, XF
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2003, 225 : U53 - U53
  • [29] Dielectric barrier discharge plasma treatment on E. coli: Influence of CH4/N2, O2, N2/O2, N2, and Ar gases
    Majumdar, Abhijit
    Singh, Rajesh Kumar
    Palm, Gottfried J.
    Hippler, Rainer
    JOURNAL OF APPLIED PHYSICS, 2009, 106 (08)
  • [30] Breaking the O(m2n) Barrier for Minimum Cycle Bases
    Amaldi, Edoardo
    Iuliano, Claudio
    Jurkiewicz, Tomasz
    Mehlhorn, Kurt
    Rizzi, Romeo
    ALGORITHMS - ESA 2009, PROCEEDINGS, 2009, 5757 : 301 - +