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 条
  • [41] Evaluating topological ordering in directed acyclic graphs
    Antunovic, Suzana
    Vukicevic, Damir
    ELECTRONIC JOURNAL OF GRAPH THEORY AND APPLICATIONS, 2021, 9 (02) : 567 - 580
  • [42] Efficient granularity and clustering of the Directed Acyclic Graphs
    Hua, QS
    Chen, ZG
    PARALLEL AND DISTRIBUTED COMPUTING, APPLICATIONS AND TECHNOLOGIES, PDCAT'2003, PROCEEDINGS, 2003, : 625 - 628
  • [43] MATRIX REPRESENTATIONS AND INDEPENDENCIES IN DIRECTED ACYCLIC GRAPHS
    Marchetti, Giovanni M.
    Wermuth, Nanny
    ANNALS OF STATISTICS, 2009, 37 (02): : 961 - 978
  • [44] Efficient coding of labeled directed acyclic graphs
    B. Steinsky
    Soft Computing, 2003, 7 : 350 - 356
  • [45] ON THE GRANULARITY AND CLUSTERING OF DIRECTED ACYCLIC TASK GRAPHS
    GERASOULIS, A
    YANG, T
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1993, 4 (06) : 686 - 701
  • [46] A PARALLEL SEARCH ALGORITHM FOR DIRECTED ACYCLIC GRAPHS
    GHOSH, RK
    BHATTACHARJEE, GP
    BIT, 1984, 24 (02): : 134 - 150
  • [47] Beyond rankings: comparing directed acyclic graphs
    Eric Malmi
    Nikolaj Tatti
    Aristides Gionis
    Data Mining and Knowledge Discovery, 2015, 29 : 1233 - 1257
  • [48] Beyond rankings: comparing directed acyclic graphs
    Malmi, Eric
    Tatti, Nikolaj
    Gionis, Aristides
    DATA MINING AND KNOWLEDGE DISCOVERY, 2015, 29 (05) : 1233 - 1257
  • [49] Properties of monotonie effects on directed acyclic graphs
    Department of Health Studies, University of Chicago, Chicago, IL 60615, United States
    不详
    J. Mach. Learn. Res., 2009, (699-718):
  • [50] Hyperbolic Disk Embeddings for Directed Acyclic Graphs
    Suzuki, Ryota
    Takahama, Ryusuke
    Onoda, Shun
    INTERNATIONAL CONFERENCE ON MACHINE LEARNING, VOL 97, 2019, 97