Skip to main navigation Skip to search Skip to main content

Efficient Enumeration for Annotated Grammars

  • Pontificia Universidad Católica de Chile

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We introduce annotated grammars, an extension of context-free grammars which allows annotations on terminals. Our model extends the standard notion of regular spanners, and is more expressive than the extraction grammars recently introduced by Peterfreund. We study the enumeration problem for annotated grammars: fixing a grammar, and given a string as input, enumerate all annotations of the string that form a word derivable from the grammar. Our first result is an algorithm for unambiguous annotated grammars, which preprocesses the input string in cubic time and enumerates all annotations with output-linear delay. This improves over Peterfreund's result, which needs quintic time preprocessing to achieve this delay bound. We then study how we can reduce the preprocessing time while keeping the same delay bound, by making additional assumptions on the grammar. Specifically, we present a class of grammars which only have one derivation shape for all outputs, for which we can enumerate with quadratic time preprocessing. We also give classes that generalize regular spanners for which linear time preprocessing suffices.

Original languageEnglish
Title of host publicationPODS 2022 - Proceedings of the 41st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
PublisherAssociation for Computing Machinery
Pages291-300
Number of pages10
ISBN (Electronic)9781450392600
DOIs
Publication statusPublished - 13 Jun 2022
Event41st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2022 - Philadelphia, United States
Duration: 12 Jun 202217 Jun 2022

Publication series

NameProceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems
ISSN (Print)1055-6338

Conference

Conference41st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2022
Country/TerritoryUnited States
CityPhiladelphia
Period12/06/2217/06/22

Keywords

  • constant-delay enumeration
  • context-free grammars
  • document spanners
  • query evaluation

Fingerprint

Dive into the research topics of 'Efficient Enumeration for Annotated Grammars'. Together they form a unique fingerprint.

Cite this