中文
相关论文

相关论文: Fast Context-Free Grammar Parsing Requires Fast Bo…

200 篇论文

Valiant showed that Boolean matrix multiplication (BMM) can be used for CFG parsing. We prove a dual result: CFG parsers running in time $O(|G||w|^{3 - \myeps})$ on a grammar $G$ and a string $w$ can be used to multiply $m \times m$ Boolean…

cmp-lg · 计算机科学 2008-02-03 Lillian Lee

The CFG recognition problem is: given a context-free grammar $\mathcal{G}$ and a string $w$ of length $n$, decide if $w$ can be obtained from $\mathcal{G}$. This is the most basic parsing question and is a core computer science problem.…

计算复杂性 · 计算机科学 2015-11-06 Amir Abboud , Arturs Backurs , Virginia Vassilevska Williams

We describe a matrix multiplication recognition algorithm for a subset of binary linear context-free rewriting systems (LCFRS) with running time $O(n^{\omega d})$ where $M(m) = O(m^{\omega})$ is the running time for $m \times m$ matrix…

计算与语言 · 计算机科学 2016-03-09 Shay B. Cohen , Daniel Gildea

Tree-adjoining grammars are a generalization of context-free grammars that are well suited to model human languages and are thus popular in computational linguistics. In the tree-adjoining grammar recognition problem, given a grammar…

计算复杂性 · 计算机科学 2018-03-05 Karl Bringmann , Philip Wellnitz

To guarantee that an LLM's outputs conform to a specified structure, context-free grammar (CFG) decoding engines force the selection of next tokens that produce strings that conform to a given CFG. While current CFG-constrained decoding…

人工智能 · 计算机科学 2026-05-29 Michael Sullivan , Alexander Koller

Various static analysis problems are reformulated as instances of the Context-Free Language Reachability (CFL-r) problem. One promising way to make solving CFL-r more practical for large-scale interprocedural graphs is to reduce CFL-r to…

编程语言 · 计算机科学 2024-01-23 Ilia Muravev

Boolean grammars generalize context-free rewriting by extending the possibilities when dealing with different rules for the same nonterminal symbol. By allowing not only disjunction (as in the case of usual context-free grammars), but also…

形式语言与自动机理论 · 计算机科学 2024-09-12 Patrik Adrián , György Vaszil

We revisit the fundamental Boolean Matrix Multiplication (BMM) problem. With the invention of algebraic fast matrix multiplication over 50 years ago, it also became known that BMM can be solved in truly subcubic $O(n^\omega)$ time, where…

数据结构与算法 · 计算机科学 2024-05-28 Amir Abboud , Nick Fischer , Zander Kelley , Shachar Lovett , Raghu Meka

Motivated by recent connections to factorised databases, we analyse the efficiency of representations by context free grammars (CFGs). Concretely, we prove a recent conjecture by Kimelfeld, Martens, and Niewerth (ICDT 2025), that for finite…

数据库 · 计算机科学 2025-04-01 Stefan Mengel , Harry Vinall-Smeeth

Probabilistic context-free grammars (PCFGs) with neural parameterization have been shown to be effective in unsupervised phrase-structure grammar induction. However, due to the cubic computational complexity of PCFG representation and…

计算与语言 · 计算机科学 2021-04-29 Songlin Yang , Yanpeng Zhao , Kewei Tu

Synchronous Context-Free Grammars (SCFGs), also known as syntax-directed translation schemata, are unlike context-free grammars in that they do not have a binary normal form. In general, parsing with SCFGs takes space and time polynomial in…

形式语言与自动机理论 · 计算机科学 2013-11-27 Pierluigi Crescenzi , Daniel Gildea , Andrea Marino , Gianluca Rossi , Giorgio Satta

A classical result by Floyd ("On the non-existence of a phrase structure grammar for ALGOL 60", 1962) states that the complete syntax of any sensible programming language cannot be described by the ordinary kind of formal grammars…

形式语言与自动机理论 · 计算机科学 2020-12-08 Alexander Okhotin

In this paper, we propose a globally normalized model for context-free grammar (CFG)-based semantic parsing. Instead of predicting a probability, our model predicts a real-valued score at each step and does not suffer from the label bias…

计算与语言 · 计算机科学 2021-06-08 Chenyang Huang , Wei Yang , Yanshuai Cao , Osmar Zaïane , Lili Mou

Matrix multiplication is a fundamental kernel in high performance computing. Many algorithms for fast matrix multiplication can only be applied to enormous matrices ($n>10^{100}$) and thus cannot be used in practice. Of all algorithms…

数据结构与算法 · 计算机科学 2025-08-05 Oded Schwartz , Eyal Zwecher

Addressing the interpretability problem of NMF on Boolean data, Boolean Matrix Factorization (BMF) uses Boolean algebra to decompose the input into low-rank Boolean factor matrices. These matrices are highly interpretable and very useful in…

机器学习 · 计算机科学 2023-07-18 Sebastian Dalleiger , Jilles Vreeken

Valiant (1975) has developed an algorithm for recognition of context free languages. As of today, it remains the algorithm with the best asymptotic complexity for this purpose. In this paper, we present an algebraic specification,…

计算机科学中的逻辑 · 计算机科学 2019-03-14 Jean-Philippe Bernardy , Patrik Jansson

Classifying formal languages according to the expressiveness of grammars able to generate them is a fundamental problem in computational linguistics and, therefore, in the theory of computation. Furthermore, such kind of analysis can give…

形式语言与自动机理论 · 计算机科学 2024-05-16 Marco B. Caminati

Context-free grammars (CFGs) are the de-facto formalism for declaratively describing concrete syntax for programming languages and generating parsers. One of the major challenges in defining a desired syntax is ruling out all possible…

编程语言 · 计算机科学 2026-02-23 Yunjeong Lee , Gokul Rajiv , Ilya Sergey

In this paper we present a really simple linear-time algorithm constructing a context-free grammar of size O(g log (N/g)) for the input string, where N is the size of the input string and g the size of the optimal grammar generating this…

数据结构与算法 · 计算机科学 2014-03-19 Artur Jeż

Large Language Models (LLMs) are often asked to generate structured outputs that obey precise syntactic rules, such as code snippets or formatted data. Grammar-constrained decoding (GCD) can guarantee that LLM outputs matches such rules by…

计算与语言 · 计算机科学 2025-07-17 Kanghee Park , Timothy Zhou , Loris D'Antoni
‹ 上一页 1 2 3 10 下一页 ›