Listing, Verifying and Counting Lowest Common Ancestors in DAGs: Algorithms and Fine-Grained Lower Bounds

04/22/2022
by   Surya Mathialagan, et al.
0

The AP-LCA problem asks, given an n-node directed acyclic graph (DAG), to compute for every pair of vertices u and v in the DAG a lowest common ancestor (LCA) of u and v if one exists. In this paper we study several interesting variants of AP-LCA, providing both algorithms and fine-grained lower bounds for them. The lower bounds we obtain are the first conditional lower bounds for LCA problems higher than n^ω-o(1), where ω is the matrix multiplication exponent. Some of our results include: - In any DAG, we can detect all vertex pairs that have at most two LCAs and list all of their LCAs in O(n^ω) time. This algorithm extends a result of [Kowaluk and Lingas ESA'07] which showed an Õ(n^ω) time algorithm that detects all pairs with a unique LCA in a DAG and outputs their corresponding LCAs. - Listing 7 LCAs per vertex pair in DAGs requires n^3-o(1) time under the popular assumption that 3-uniform 5-hyperclique detection requires n^5-o(1) time. This is surprising since essentially cubic time is sufficient to list all LCAs (if ω=2). - Counting the number of LCAs for every vertex pair in a DAG requires n^3-o(1) time under the Strong Exponential Time Hypothesis, and n^ω(1,2,1)-o(1) time under the 4-Clique hypothesis. This shows that the algorithm of [Echkardt, Mühling and Nowak ESA'07] for listing all LCAs for every pair of vertices is likely optimal. - Given a DAG and a vertex w_u,v for every vertex pair u,v, verifying whether all w_u,v are valid LCAs requires n^2.5-o(1) time assuming 3-uniform 4-hyperclique requires n^4 - o(1) time. This defies the common intuition that verification is easier than computation since returning some LCA per vertex pair can be solved in O(n^2.447) time [Grandoni et al. SODA'21].

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/06/2021

Tight bounds for counting colorings and connected edge sets parameterized by cutwidth

We study the fine-grained complexity of counting the number of colorings...
research
03/25/2023

Fredman's Trick Meets Dominance Product: Fine-Grained Complexity of Unweighted APSP, 3SUM Counting, and More

In this paper we carefully combine Fredman's trick [SICOMP'76] and Matou...
research
07/16/2018

Faster Algorithms for All-Pairs Bounded Min-Cuts

Given a directed graph, the vertex connectivity from u to v is the maxim...
research
04/10/2023

(Almost) Ruling Out SETH Lower Bounds for All-Pairs Max-Flow

The All-Pairs Max-Flow problem has gained significant popularity in the ...
research
01/04/2023

Parameterised and Fine-grained Subgraph Counting, modulo 2

Given a class of graphs ℋ, the problem ⊕𝖲𝗎𝖻(ℋ) is defined as follows. Th...
research
12/01/2022

Tight Conditional Lower Bounds for Vertex Connectivity Problems

We study the fine-grained complexity of graph connectivity problems in u...
research
03/07/2020

The Fine-Grained Complexity of Computing the Tutte Polynomial of a Linear Matroid

We show that computing the Tutte polynomial of a linear matroid of dimen...

Please sign up or login with your details

Forgot password? Click here to reset