Affiliation:
1. Pontificia Universidad Católica & IMFD, Macul, Santiago, Chile
2. Carnegie Mellon University, Pittsburgh, PA, United States
Abstract
In this work, we study two simple yet general complexity classes, based on logspace Turing machines, that provide a unifying framework for efficient query evaluation in areas such as information extraction and graph databases, among others. We investigate the complexity of three fundamental algorithmic problems for these classes: enumeration, counting, and uniform generation of solutions, and show that they have several desirable properties in this respect.
Both complexity classes are defined in terms of non-deterministic logspace transducers (NL-transducers). For the first class, we consider the case of unambiguous NL-transducers, and we prove constant delay enumeration and both counting and uniform generation of solutions in polynomial time. For the second class, we consider unrestricted NL-transducers, and we obtain polynomial delay enumeration, approximate counting in polynomial time, and polynomial-time randomized algorithms for uniform generation. More specifically, we show that each problem in this second class admits a fully polynomial-time randomized approximation scheme (FPRAS) and a polynomial-time Las Vegas algorithm (with preprocessing) for uniform generation. Remarkably, the key idea to prove these results is to show that the fundamental problem # NFA admits an FPRAS, where # NFA is the problem of counting the number of strings of length
n
(given in unary) accepted by a non-deterministic finite automaton (NFA). While this problem is known to be P-complete and, more precisely,
SpanL
-complete, it was open whether this problem admits an FPRAS. In this work, we solve this open problem and obtain as a welcome corollary that every function in
SpanL
admits an FPRAS.
Funder
ANID - Millennium Science Initiative Program
Fondecyt
ANID BECAS/MAGISTER NACIONAL
Publisher
Association for Computing Machinery (ACM)
Subject
Artificial Intelligence,Hardware and Architecture,Information Systems,Control and Systems Engineering,Software
Reference33 articles.
1. Data, responsibly (Dagstuhl seminar 16291);Abiteboul Serge;Dagstuhl Rep.,2016
2. A very hard log-space counting class
3. A circuit-based approach to efficient enumeration;Amarilli Antoine;Proceedings of ICALP.,2017
Cited by
4 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. A faster FPRAS for #NFA;Proceedings of the ACM on Management of Data;2024-05-10
2. Combined Approximations for Uniform Operational Consistent Query Answering;Proceedings of the ACM on Management of Data;2024-05-10
3. Probabilistic Query Evaluation: The Combined FPRAS Landscape;Proceedings of the 42nd ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2023-06-18
4. Counting the Answers to a Query;ACM SIGMOD Record;2022-11-21