The paper focuses on the #NFA problem, which is to determine the size of the set of words of a given length accepted by a non-deterministic finite automaton (NFA). The #NFA problem is known to be #P-hard, and recently an FPRAS (fully polynomial-time randomized approximation scheme) was developed for it. However, the time complexity of the previous FPRAS was prohibitively high, limiting its practical applicability.
The authors present a new FPRAS for #NFA that has significantly lower time complexity. The key technical differences are:
These differences allow the new FPRAS to maintain significantly fewer samples per state, leading to a much lower overall time complexity. Specifically, the new FPRAS runs in time ̃O((m^2 * n^10 + m^3 * n^6) * (1/ε^4) * log^2(1/δ)), where m is the number of states in the NFA, n is the length of the strings, ε is the approximation error, and δ is the failure probability. This is a significant improvement over the previous FPRAS, which had a time complexity of ̃O(m^17 * n^17 * (1/ε^14) * log(1/δ)).
The authors also present two key subroutines - AppUnion and sample - and provide formal guarantees for their correctness and running time. The main algorithm combines these subroutines to achieve the overall FPRAS for #NFA.
Sang ngôn ngữ khác
từ nội dung nguồn
arxiv.org
Thông tin chi tiết chính được chắt lọc từ
by Kuldeep S. M... lúc arxiv.org 04-09-2024
https://arxiv.org/pdf/2312.13320.pdfYêu cầu sâu hơn