Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
144 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
45 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

A faster FPRAS for #NFA (2312.13320v2)

Published 20 Dec 2023 in cs.DS, cs.CC, cs.LO, and cs.PL

Abstract: Given a non-deterministic finite automaton (NFA) A with m states, and a natural number n (presented in unary), the #NFA problem asks to determine the size of the set L(A_n) of words of length n accepted by A. While the corresponding decision problem of checking the emptiness of L(A_n) is solvable in polynomial time, the #NFA problem is known to be #P-hard. Recently, the long-standing open question -- whether there is an FPRAS (fully polynomial time randomized approximation scheme) for #NFA -- was resolved in \cite{ACJR19}. The FPRAS due to \cite{ACJR19} relies on the interreducibility of counting and sampling, and computes, for each pair of state q and natural number i <= n, a set of O(\frac{m7 n7}{epsilon7}) many uniformly chosen samples from the set of words of length i that have a run ending at q (\epsilon is the error tolerance parameter of the FPRAS). This informative measure -- the number of samples maintained per state and length -- also affects the overall time complexity with a quadratic dependence. Given the prohibitively high time complexity, in terms of each of the input parameters, of the FPRAS due to \cite{ACJR19}, and considering the widespread application of approximate counting (and sampling) in various tasks in Computer Science, a natural question arises: Is there a faster FPRAS for #NFA that can pave the way for the practical implementation of approximate #NFA tools? In this work, we demonstrate that significant improvements in time complexity are achievable. Specifically, we have reduced the number of samples required for each state to be independent of m, with significantly less dependence on $n$ and $\epsilon$, maintaining only \widetilde{O}(\frac{n4}{epsilon2}) samples per state.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (18)
  1. Conjunctive Queries on Probabilistic Graphs: The Limits of Approximability. In 27th International Conference on Database Theory, ICDT, Vol. 290. 15:1–15:20. https://doi.org/10.4230/LIPICS.ICDT.2024.15
  2. Foundations of Modern Query Languages for Graph Databases. ACM Comput. Surv. 50, 5, Article 68 (2017). https://doi.org/10.1145/3104031
  3. Efficient Logspace Classes for Enumeration, Counting, and Uniform Generation. In Proceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems (PODS). 59–73. https://doi.org/10.1145/3294052.3319704
  4. # NFA Admits an FPRAS: Efficient Enumeration, Counting, and Uniform Generation for Logspace Classes. Journal of the ACM (JACM) 68, 6 (2021), 1–40.
  5. String Analysis for Side Channels with Segmented Oracles. In Proceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering (FSE). 193–204.
  6. Machine Improvisation with Formal Specifications. In Music Technology meets Philosophy - From Digital Echos to Virtual Ethos: Joint Proceedings of the 40th International Computer Music Conference, ICMC. https://hdl.handle.net/2027/spo.bbp2372.2014.196
  7. Verifying and Quantifying Side-Channel Resistance of Masked Software Implementations. ACM Trans. Softw. Eng. Methodol. 28, 3, Article 16 (jul 2019), 32 pages. https://doi.org/10.1145/3330392
  8. A Quasi-Polynomial-Time Algorithm for Sampling Words from a Context-Free Language. Inf. Comput. 134, 1 (1997), 59–74. https://doi.org/10.1006/inco.1997.2621
  9. Kenneth E Iverson. 1962. A programming language. In Proceedings of the May 1-3, 1962, spring joint computer conference. 345–351.
  10. Random Generation of Combinatorial Structures from a Uniform Distribution. Theor. Comput. Sci. 43 (1986), 169–188. https://doi.org/10.1016/0304-3975(86)90174-X
  11. Counting and Random Generation of Strings in Regular Languages. In Proceedings of the Sixth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). 551–557.
  12. Richard M. Karp and Michael Luby. 1985. Monte-Carlo algorithms for the planar multiterminal network reliability problem. J. Complex. 1, 1 (1985), 45–64. https://doi.org/10.1016/0885-064X(85)90021-4
  13. Statistical Model Checking: An Overview. In Runtime Verification. 122–135.
  14. Trace Aware Random Testing for Distributed Systems. Proc. ACM Program. Lang. 3, OOPSLA, Article 180 (oct 2019), 29 pages. https://doi.org/10.1145/3360606
  15. Obtaining Information Leakage Bounds via Approximate Model Counting. Proc. ACM Program. Lang. 7, PLDI, Article 167 (jun 2023). https://doi.org/10.1145/3591281
  16. Fuzzing: Brute Force Vulnerability Discovery. Addison-Wesley Professional.
  17. Timothy van Bremen and Kuldeep S. Meel. 2023. Probabilistic Query Evaluation: The Combined FPRAS Landscape. In PODS. 339–347.
  18. Carme Álvarez and Birgit Jenner. 1993. A very hard log-space counting class. Theoretical Computer Science 107, 1 (1993), 3–30. https://doi.org/10.1016/0304-3975(93)90252-O
Citations (3)

Summary

We haven't generated a summary for this paper yet.