English

Cocke--Younger--Kasami--Schwartz--Zippel algorithm and relatives

Formal Languages and Automata Theory 2022-12-08 v1 Data Structures and Algorithms

Abstract

The equivalence problem for unambiguous grammars is an important, but very difficult open question in formal language theory. Consider the \emph{limited} equivalence problem for unambiguous grammars -- for two unambiguous grammars G1G_1 and G2G_2, tell whether or not they describe the same set of words of length nn. Obviously, the naive approach requires exponential time with respect to nn. By combining two classic algorithmic ideas, I introduce a O(poly(n,G1,G2))O({\rm poly}(n, |G_1|, |G_2|)) algorithm for this problem. Moreover, the ideas behind the algorithm prove useful in various other scenarious.

Keywords

Cite

@article{arxiv.2212.03861,
  title  = {Cocke--Younger--Kasami--Schwartz--Zippel algorithm and relatives},
  author = {Vladislav Makarov},
  journal= {arXiv preprint arXiv:2212.03861},
  year   = {2022}
}

Comments

11 pages

R2 v1 2026-06-28T07:25:07.162Z