Fast parsing for Boolean grammars: a generalization of Valiant's algorithm

  • Authors:
  • Alexander Okhotin

  • Affiliations:
  • Department of Mathematics, University of Turku, Turku, Finland and Academy of Finland

  • Venue:
  • DLT'10 Proceedings of the 14th international conference on Developments in language theory
  • Year:
  • 2010

Quantified Score

Hi-index 0.01

Visualization

Abstract

The well-known parsing algorithm for the context-free grammars due to Valiant ("General context-free recognition in less than cubic time", Journal of Computer and System Sciences, 10:2 (1975), 308-314) is refactored and generalized to handle the more general Boolean grammars. The algorithm reduces construction of the parsing table to computing multiple products of Boolean matrices of various size. Its time complexity on an input string of length n is O(BMM(n) log n), where BMM(n) is the number of operations needed to multiply two Boolean matrices of size n × n, which is O(n2.376) as per the current knowledge.