The Smallest Grammar Problem as Constituents Choice and Minimal Grammar Parsing
Open Access
- 26 October 2011
- journal article
- research article
- Published by MDPI AG in Algorithms
- Vol. 4 (4) , 262-284
Abstract
The smallest grammar problem—namely, finding a smallest context-free grammar that generates exactly one sequence—is of practical and theoretical importance in fields such as Kolmogorov complexity, data compression and pattern discovery. We propose a new perspective on this problem by splitting it into two tasks: (1) choosing which words will be the constituents of the grammar and (2) searching for the smallest grammar given this set of constituents. We show how to solve the second task in polynomial time parsing longer constituent with smaller ones. We propose new algorithms based on classical practical algorithms that use this optimization to find small grammars. Our algorithms consistently find smaller grammars on a classical benchmark reducing the size in 10% in some cases. Moreover, our formulation allows us to define interesting bounds on the number of small grammars and to empirically compare different grammars of small size.Keywords
This publication has 18 references indexed in Scilit:
- Linear-Time Text Compression by Longest-First SubstitutionAlgorithms, 2009
- MicroRNA Target Detection and Analysis for Genes Related to Breast Cancer Using MDLcompressEURASIP Journal on Bioinformatics and Systems Biology, 2007
- The Smallest Grammar ProblemIEEE Transactions on Information Theory, 2005
- Application of Lempel–Ziv factorization to the approximation of grammar-based compressionTheoretical Computer Science, 2003
- Off-line compression by greedy textual substitutionProceedings of the IEEE, 2000
- Off-line dictionary-based compressionProceedings of the IEEE, 2000
- Grammar-based codes: a new class of universal lossless source codesIEEE Transactions on Information Theory, 2000
- Compression of individual sequences via variable-rate codingIEEE Transactions on Information Theory, 1978
- A universal algorithm for sequential data compressionIEEE Transactions on Information Theory, 1977
- AN ALGORITHM FOR THE SEGMENTATION OF AN ARTIFICIAL LANGUAGE ANALOGUEBritish Journal of Psychology, 1975