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

Abstract

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

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…