#TTT 1 hashtag

Rahul Gopinath

A tutorial of the #TTT algorithm for inferring regular input grammars using active membership queries. I had posted the L* algorithm (active grammar inference using membership queries), and the RPNI algorithm (passive grammar inference using examples) earlier.

This is part of my ongoing effort to document various algorithms relating to grammars including various algorithms for parsing, random sampling of fixed size strings, and grammar fuzzing.

Note: Pyodide takes a little time to initialize, but it should be faster to initialize than spinning up the binder service from Jupyter (but slower to execute).

https://rahul.gopinath.org/post/2026/06/09/ttt-grammar-inference/