Table of Contents
Fetching ...

Unbalanced Triangle Detection and Enumeration Hardness for Unions of Conjunctive Queries

Karl Bringmann, Nofar Carmeli

TL;DR

This work addresses the problem of enumerating UCQ answers with optimal preprocessing and delay, focusing on the class $DelayC_{lin}$ and the role of free-$connex$ union extensions. It introduces Vertex-Unbalanced Triangle Detection (VUTD) and its listing variant (VUTL) as central barriers, linking 3SUM-based hardness to unbalanced triangle tasks. A key result is the equivalence between $VUTD$ and a family of UCQs lacking free-$connex$ extensions, enabling a dichotomy for unions of two self-join-free CQs under this hypothesis. The findings suggest that breakthroughs in unbalanced triangle detection would translate into new tractable UCQs, while the current lower-bound framework explains why progress on UCQ enumeration hinges on this single fundamental problem.

Abstract

We study the enumeration of answers to Unions of Conjunctive Queries (UCQs) with optimal time guarantees. More precisely, we wish to identify the queries that can be solved with linear preprocessing time and constant delay. Despite the basic nature of this problem, it was shown only recently that UCQs can be solved within these time bounds if they admit free-connex union extensions, even if all individual CQs in the union are intractable with respect to the same complexity measure. Our goal is to understand whether there exist additional tractable UCQs, not covered by the currently known algorithms. As a first step, we show that some previously unclassified UCQs are hard using the classic 3SUM hypothesis, via a known reduction from 3SUM to triangle listing in graphs. As a second step, we identify a question about a variant of this graph task that is unavoidable if we want to classify all self-join-free UCQs: is it possible to decide the existence of a triangle in a vertex-unbalanced tripartite graph in linear time? We prove that this task is equivalent in hardness to some family of UCQs. Finally, we show a dichotomy for unions of two self-join-free CQs if we assume the answer to this question is negative. In conclusion, this paper pinpoints a computational barrier in the form of a single decision problem that is key to advancing our understanding of the enumeration complexity of many UCQs. Without a breakthrough for unbalanced triangle detection, we have no hope of finding an efficient algorithm for additional unions of two self-join-free CQs. On the other hand, a sufficiently efficient unbalanced triangle detection algorithm can be turned into an efficient algorithm for a family of UCQs currently not known to be tractable.

Unbalanced Triangle Detection and Enumeration Hardness for Unions of Conjunctive Queries

TL;DR

This work addresses the problem of enumerating UCQ answers with optimal preprocessing and delay, focusing on the class and the role of free- union extensions. It introduces Vertex-Unbalanced Triangle Detection (VUTD) and its listing variant (VUTL) as central barriers, linking 3SUM-based hardness to unbalanced triangle tasks. A key result is the equivalence between and a family of UCQs lacking free- extensions, enabling a dichotomy for unions of two self-join-free CQs under this hypothesis. The findings suggest that breakthroughs in unbalanced triangle detection would translate into new tractable UCQs, while the current lower-bound framework explains why progress on UCQ enumeration hinges on this single fundamental problem.

Abstract

We study the enumeration of answers to Unions of Conjunctive Queries (UCQs) with optimal time guarantees. More precisely, we wish to identify the queries that can be solved with linear preprocessing time and constant delay. Despite the basic nature of this problem, it was shown only recently that UCQs can be solved within these time bounds if they admit free-connex union extensions, even if all individual CQs in the union are intractable with respect to the same complexity measure. Our goal is to understand whether there exist additional tractable UCQs, not covered by the currently known algorithms. As a first step, we show that some previously unclassified UCQs are hard using the classic 3SUM hypothesis, via a known reduction from 3SUM to triangle listing in graphs. As a second step, we identify a question about a variant of this graph task that is unavoidable if we want to classify all self-join-free UCQs: is it possible to decide the existence of a triangle in a vertex-unbalanced tripartite graph in linear time? We prove that this task is equivalent in hardness to some family of UCQs. Finally, we show a dichotomy for unions of two self-join-free CQs if we assume the answer to this question is negative. In conclusion, this paper pinpoints a computational barrier in the form of a single decision problem that is key to advancing our understanding of the enumeration complexity of many UCQs. Without a breakthrough for unbalanced triangle detection, we have no hope of finding an efficient algorithm for additional unions of two self-join-free CQs. On the other hand, a sufficiently efficient unbalanced triangle detection algorithm can be turned into an efficient algorithm for a family of UCQs currently not known to be tractable.
Paper Structure (23 sections, 25 theorems, 8 equations, 1 figure)

This paper contains 23 sections, 25 theorems, 8 equations, 1 figure.

Key Result

Theorem 2.3

Let $Q$ be a self-join-free CQ.

Figures (1)

  • Figure 1: Connections between the hypotheses mentioned in this paper. An edge $H_1\rightarrow H_2$ means that $H_1$ implies $H_2$. The hypotheses EUTD and 4-Clique are not in the figure since we do not know of connections between them and the other hypotheses.

Theorems & Definitions (62)

  • Definition 2.1: BMM Hypothesis
  • Definition 2.2: Hyperclique Hypothesis
  • Theorem 2.3: bdg:dichotomybb:thesis
  • Theorem 2.4: DBLP:conf/pods/CarmeliK19
  • Example 2.5
  • Definition 2.6: 4-Clique Hypothesis
  • Theorem 2.7: DBLP:conf/pods/CarmeliK19
  • Definition 3.1: 3SUM Conjecture
  • Proposition 3.2
  • Definition 3.3: Set Intersection Problem
  • ...and 52 more