mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#NFA

0 posts0 participants0 posts today

I figured it was time to write a weblog post breaking down the political and illogical farce of Trudeau's executive actions on firearms these last few years.

You probably won't see many posts like this from the far left, but as the saying goes: "When you go far enough left, you get your guns back."

Oh yeah, I should put a link instead of spending all of my time writing an alt-text on that free Tornado spud-gun advert that doesn't even link anywhere.

superhighwayman.com/2025/canad

#Canada #Guns #CanPoli #Politics #Firearms #SKS #I #Bet #Twitter #Has #More #AR15 #Hashtags #than #Mastodon #NFA #PeePee #polievre #Trudeau #Carney #BigBills #Blog #Tornado #Comic #Potato #TooManyHashtags #AI #Assisted #Weblog #NobodyReadsTheseAnyway #RamRanch #FreedumbConvoy #TimBitTaliban (I haven't used those for ages, I will stop now)

After years I looked again at a #Java library I once wrote to create (Non)deterministic Finite Automata (#nfa, #dfa). I removed a lot of stuff to trim it to the real core. Now I will slowly add features again.

In contrast to builtin regular expression in Java, this one does DFAs and also allows to visualize them (see FaToDot). Javadoc and tutorial are not up, but source code is on #codeberg .

The name prefix, monq, was not invented by a native french speaker. 😀

codeberg.org/harald/monqjfa

Codeberg.orgmonqjfamonqjfa
Continued thread

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{m^7 n^7}{epsilon^7}) 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{n^4}{epsilon^2}) samples per state.
[arxiv.org/abs/2312.13320v1]

arXiv.orgA faster FPRAS for #NFAGiven 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{m^7 n^7}{epsilon^7}) many uniformly chosen samples from the set of words of length i that have a run ending at q (ε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 $ε$, maintaining only \widetilde{O}(\frac{n^4}{epsilon^2}) samples per state.

A faster FPRAS for #NFA

Kuldeep S. Meel, Sourav Chakraborty, Umang Mathur
arXiv.org/abs/2312.13320 arXiv.org/pdf/2312.13320

arXiv.orgA faster FPRAS for #NFAGiven 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{m^7 n^7}{epsilon^7}) many uniformly chosen samples from the set of words of length i that have a run ending at q (ε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 $ε$, maintaining only \widetilde{O}(\frac{n^4}{epsilon^2}) samples per state.

Paper: Hyperscan: A Fast Multi-pattern Regex Matcher for Modern CPUs – Branch Free

"ε-free (“epsilon free”); that is, an NFA that does not make transitions from state to state without processing a character. This makes it considerably easier to build state machines with simple bit vector operations (although the successor function, showing which states can follow other states, is not necessarily trivial)."
branchfree.org/2019/02/28/pape).

Branch Free · Paper: Hyperscan: A Fast Multi-pattern Regex Matcher for Modern CPUsI’m pleased to report that Hyperscan, the regular expression matcher that ate my life from 2008 through 2018, finally has a paper (pdf) – it’s being presented this week at NSDI &#…
Replied in thread

@Lady_Star_Gem they're mostly in fear of empowered, former marginalized communities.

Acknowledging what they've done they expect to be the prime target of revenge-violence, cuz they can't fathom a world where people live together in peace...

That being said, these assholes alone and their support for #StochasticTerrorism is reason enough why I think the #NFA should be repealed & every non-white/heterocisbinary/male person should be entitled to build, own & conceal carry any destructive device.