Repository logo
Log in(current)
Repository logoMIT Open ScholarshipDSpace@MIT
  1. Home
  2. Computer Science and Artificial Intelligence Lab (CSAIL)
  3. Artificial Intelligence Lab Publications
  4. AI Memos (1959 - 2004)
  5. A Left to Right then Right to Left Parsing Algorithm

A Left to Right then Right to Left Parsing Algorithm

Thumbnail Image
Download
Name

AIM-155.pdf

Size

503.58 KB

Format

Adobe PDF

Checksum (MD5)

457d9e3d7e725e97d327842b3ff04b15

Thumbnail Image
Download
Name

AIM-155.ps

Size

6.07 MB

Format

PostScript

Checksum (MD5)

7ef5d69edf442eff85affc261e180f86

Author(s)
Martin, William A.
Date Issued
February 1, 1968
Series/Report no.
AIM-155
Abstract
Determination of the minimum resources required to parse a language generated by a given context free grammar is an intriguing and yet unsolved problem. It seems plausible that any unambiguous context free grammar could be parsed in time proportional to the length, n, of each input string. Early (2) has presented an algorithm which parses "many" grammars in the proportional to n, but requires n2 on some. His work is an extension of Knuth's method. Knuth's method fails when more than one alternative must be examined by a push-down automation making a left to right scan of the input string. Early's extension takes all possible alternatives simultaneously without duplication of effort at any given one step. The method presented here continues through the string in order to gain pass, which is made on the symbols accumulated on the stack of the automation. The algorithm is probably more efficient than Early's on certain grammars; it will fail completely on others. The essential idea may be interesting to those attacking the general problem.
Persistent DSpace Link
http://hdl.handle.net/1721.1/6160
Repository logo
PrivacyPermissionsAccessibilityContact us
Repository logo
Notify us about copyright concerns.