LCA queries in directed acyclic graphs

被引:0
|
作者
Kowaluk, M [1 ]
Lingas, A
机构
[1] Warsaw Univ, Inst Informat, Warsaw, Poland
[2] Lund Univ, Dept Comp Sci, S-22100 Lund, Sweden
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present two methods for finding a lowest common ancestor (LCA) for each pair of vertices of a directed acyclic graph (dag) on n vertices and m edges. The first method is surprisingly natural and solves the all-pairs LCA problem for the input dag on n vertices and m edges in time O(nm). As a corollary, we obtain an O(n(2))-time algorithm for finding genealogical distances considerably improving the previously known O(n (2.575)) timebound for this problem. The second method relies on a novel reduction of the all-pairs LCA problem to the problem of finding maximum witnesses for Boolean matrix product. We solve the latter problem and hence also the all-pairs LCA problem in time O(n(2+) (1)/(4-w)), where w = 2.376 is the exponent of the fastest known matrix multiplication algorithm. This improves the previously known O(n(w+3)/(2)) time-bound for the general all-pairs LCA problem in dags.
引用
收藏
页码:241 / 248
页数:8
相关论文
共 50 条
  • [31] Sparse directed acyclic word graphs
    Inenaga, Shunsuke
    Takeda, Masayuki
    STRING PROCESSING AND INFORMATION RETRIEVAL, PROCEEDINGS, 2006, 4209 : 61 - 73
  • [32] Covering Pairs in Directed Acyclic Graphs
    Beerenwinkel, Niko
    Beretta, Stefano
    Bonizzoni, Paola
    Dondi, Riccardo
    Pirola, Yuri
    LANGUAGE AND AUTOMATA THEORY AND APPLICATIONS (LATA 2014), 2014, 8370 : 126 - 137
  • [33] Directed acyclic graphs in clinical research
    Dekkers, Olaf M.
    Laugesen, Kristina
    Groenwold, Rolf H. H.
    EUROPEAN JOURNAL OF ENDOCRINOLOGY, 2024, 190 (04) : E5 - E7
  • [34] Cycle analysis of Directed Acyclic Graphs
    Vasiliauskaite, Vaiva
    Evans, Tim S.
    Expert, Paul
    PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS, 2022, 596
  • [35] Model determination for directed acyclic graphs
    Consonni, G
    Leucari, V
    JOURNAL OF THE ROYAL STATISTICAL SOCIETY SERIES D-THE STATISTICIAN, 2001, 50 : 243 - 256
  • [36] Directed Path Partition Problem on Directed Acyclic Graphs
    Eto, Hiroshi
    Kawaharada, Shunsuke
    Lin, Guohui
    Miyano, Eiji
    Ozdemir, Tugce
    COMBINATORIAL ALGORITHMS, IWOCA 2024, 2024, 14764 : 314 - 326
  • [37] Directed Acyclic Graphs - Reply to Methodological Concerns
    Stang, A.
    Schipf, S.
    Knueppel, S.
    GESUNDHEITSWESEN, 2011, 73 (12) : 925 - 926
  • [38] Searching security policy with acyclic directed graphs
    Cheng, Xiaorong
    Hou, Sizu
    Computer Modelling and New Technologies, 2014, 18 (11): : 536 - 539
  • [39] Reconstruction of Directed Acyclic Graphs and fundamental limitations
    Materassi, Donatello
    Salapaka, Murti V.
    2016 AMERICAN CONTROL CONFERENCE (ACC), 2016, : 4679 - 4679
  • [40] XML Compression via Directed Acyclic Graphs
    Bousquet-Melou, Mireille
    Lohrey, Markus
    Maneth, Sebastian
    Noeth, Eric
    THEORY OF COMPUTING SYSTEMS, 2015, 57 (04) : 1322 - 1371