paperbot · PL 论文追踪

RSS

Longest segment of balanced parentheses: an exercise in program inversion in a segment problem

JFP vol.312021
SHIN-CHENG MU, TSUNG-JU CHIANG

尚未生成 AI 速览(可能缺少 API key 或等待下次运行补跑)。

原文摘要(Abstract)

Abstract Given a string of parentheses, the task is to find the longest consecutive segment that is balanced, in linear time. We find this problem interesting because it involves a combination of techniques: the usual approach for solving segment problems and a theorem for constructing the inverse of a function—through which we derive an instance of shift-reduce parsing.

链接与引用

DOI 原文 ·

BibTeX
@article{paperbot1242,
  title = {Longest segment of balanced parentheses: an exercise in program inversion in a segment problem},
  author = {SHIN-CHENG MU and TSUNG-JU CHIANG},
  journal = {Journal of Functional Programming},
  volume = {31},
  year = {2021},
  doi = {10.1017/s0956796821000253}
}