Pith. sign in

REVIEW

Longest segment of balanced parentheses -- an exercise in program inversion in a segment problem (Functional Pearl)

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2101.09699 v2 pith:UIX2LV44 submitted 2021-01-24 cs.PL

classification cs.PL
keywords segmentbalancedfindlongestparenthesesproblemapproachbecause
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original 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.

Discussion (0). Sign in to comment.

Pith tools