PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
May 16, 2026Proceedings of the ACM on Management of Data0 citations

Towards Output-Optimal Uniform Sampling and Approximate Counting for Join-Project Queries

View Full Paper
XHXiao HuJHJinchao Huang

Key Points

  • This research aims to develop optimal algorithms for uniform sampling and approximate counting in join-project queries.
  • Presented asymptotically optimal algorithms for matrix, star, and chain queries.
  • Utilized a novel rejection-based sampling strategy combined with a hybrid counting reduction.
  • Established communication complexity lower bounds for optimality verification.
  • Achieved polynomial speedups over existing methods for join-project queries.
  • Identified efficient sublinear-time algorithms for matrix and star queries, while establishing stronger lower bounds for chain queries.
  • Demonstrated that sublinear algorithms are not possible for chain queries, indicating inherent complexity.

Abstract

Uniform sampling and approximate counting are fundamental primitives for modern database applications, ranging from query optimization to approximate query processing. While recent breakthroughs have established optimal sampling and counting algorithms for full join queries, a significant gap remains for join-project queries, which are ubiquitous in real-world workloads. The state-of-the-art ''propose-and-verify'' framework 12 for these queries suffers from fundamental inefficiencies, often yielding prohibitive complexity when projections significantly reduce the output size. In this paper, we present the first asymptotically optimal algorithms for fundamental classes of join-project queries, including matrix, star, and chain queries. By leveraging a novel rejection-based sampling strategy and a hybrid counting reduction, we achieve polynomial speedups over the state of the art. We establish the optimality of our results through matching communication complexity lower bounds, which hold even against algebraic techniques like fast matrix multiplication. Finally, we delineate the theoretical limits of the problem space. While matrix and star queries admit efficient sublinear-time algorithms, we establish a significantly stronger lower bound for chain queries, demonstrating that sublinear algorithms are impossible in general.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Hu et al. (2026) studied this question.

synapsesocial.com/papers/6a080985a487c87a6a40b7d6https://doi.org/10.1145/3801916
Ask AI
Helpful
Bookmark
Share
View Full Paper