On the Intersection of Context-Free and Regular Languages

09/14/2022
by   Clemente Pasti, et al.
0

The Bar-Hillel construction is a classic result in formal language theory. It shows, by construction, that the intersection between a context-free language and a regular language is itself context-free. However, neither its original formulation (Bar-Hillel et al., 1961) nor its weighted extension (Nederhof and Satta, 2003) can handle automata with ϵ-arcs. In this short note, we generalize the Bar-Hillel construction to correctly compute the intersection even when the automaton contains ϵ-arcs. We further prove that our generalized construction leads to a grammar that encodes the structure of both the input automaton and grammar while retaining the asymptotic size of the original construction.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/26/2020

Dissecting Power of a Finite Intersection of Context Free Languages

Let ^k,α denote a tetration function defined as follows: ^1,α=2^α and ^k...
research
08/12/2019

Regular Separability and Intersection Emptiness are Independent Problems

The problem of regular separability asks, given two languages K and L, w...
research
12/17/2021

Intersection and Union Hierarchies of Deterministic Context-Free Languages and Pumping Lemmas

We study the computational complexity of finite intersections and unions...
research
03/15/2020

Grammars for Document Spanenrs

A new grammar-based language for defining information-extractors from te...
research
03/15/2020

Grammars for Document Spanners

A new grammar-based language for defining information-extractors from te...
research
07/05/2020

Radial Intersection Count Image: a Clutter Resistant 3D Shape Descriptor

A novel shape descriptor for cluttered scenes is presented, the Radial I...
research
08/05/2020

Glushkov's construction for functional subsequential transducers

Glushkov's construction has many interesting properties and they become ...

Please sign up or login with your details

Forgot password? Click here to reset