I. Feasible and Realizable Paths


1. Feasible

Infeasible Paths: Paths in CFG that do not correspond to actual executions

2. Realizable

Realizable Paths: The paths in which “returns” are matched with corresponding “calls”

Basic idea: balanced-parenthesis

Basic idea: balanced-parenthesis

II. CFL-Reachability

A systematical way to recognize realizable paths


1. Definition

CFL-Reachability: A path is considered to connect two nodes A and B, or B is reachable from A, only if the concatenation of the labels on the edges of the path is a word in a specified context-free language.

2. Partially Balanced-Parenthesis Problem via CFL

A path is a realizable path iff the path’ word is in the language $\blue {L(realizable)}$

Untitled