e01.org

Grammar-based code

(with start symbol ß) for the second sentence of the United States Declaration of Independence. Each blue character denotes a nonterminal symbol; they were obtained from a gzip-compression of the sentence. Grammar-based codes or grammar-based compression are compression algorithms based on the idea of constructing a context-free grammar (CFG) for the string to be compressed. Examples include universal lossless data compression algorithms. To compress a data sequence x = x_1 \cdots x_n , a grammar-based code transforms x into a context-free grammar G . The problem of finding a smallest grammar for an input sequence (smallest grammar problem) is known to be NP-hard, so many grammar-transform algorithms are proposed from theoretical and practical viewpoints. Generally, the produced grammar G is further compressed by statistical encoders like arithmetic coding.

(with start symbol ß) for the second sentence of the United States Declaration of Independence. Each blue character denotes a nonterminal symbol; they were obtained from a gzip-compression of the sentence.]] Grammar-based codes or grammar-based compression are compression algorithms based on the idea of constructing a context-free grammar (CFG) for the string to be compressed. Examples include universal lossless data compression algorithms. To compress a data sequence x = x_1 \cdots x_n , a grammar-based code transforms x into a context-free grammar G . The problem of finding a smallest grammar for an input sequence (smallest grammar problem) is known to be NP-hard, so many grammar-transform algorithms are proposed from theoretical and practical viewpoints. Generally, the produced grammar G is further compressed by statistical encoders like arithmetic coding. ==See also== Dictionary coder Grammar induction Straight-line grammar ==External links== GLZA discussion and paper Description of grammar-based codes with example Sequitur codes Re-Pair codes Re-Pair codes a version of Gonzalo Navarro. GrammarViz 2.0 - implementation of Sequitur, Re-Pair, and parallel Re-Pair in Java.

References

  1. ^ Kieffer, J. C.; Yang, E.-H. (2000), "Grammar-based codes: A new class of universal lossless source codes", IEEE Trans. Inf. Theory , 46 (3): 737– 754, Bibcode : 2000ITIT...46..737K , doi : 10.1109/18.841160 Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
  2. ^ Charikar, M.; Lehman, E.; Liu, D.; Panigrahy, R.; Prabharakan, M.; Sahai, A.; Shelat, A. (2005), "The Smallest Grammar Problem", IEEE Trans. Inf. Theory , 51 (7): 2554– 2576, Bibcode : 2005ITIT...51.2554C , doi : 10.1109/tit.2005.850116 , S2CID 6900082 Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
  3. ^ Kieffer, J. C.; Yang, E.-H.; Nelson, G.; Cosman, P. (2000), "Universal lossless compression via multilevel pattern matching" , IEEE Trans. Inf. Theory , 46 (4): 1227– 1245, Bibcode : 2000ITIT...46.1227K , doi : 10.1109/18.850665 , S2CID 8191526 Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
  4. ^ Ziv, J.; Lempel, A. (1978), "Compression of individual sequences via variable rate coding", IEEE Trans. Inf. Theory , 24 (5): 530– 536, Bibcode : 1978ITIT...24..530Z , doi : 10.1109/TIT.1978.1055934 , hdl : 10338.dmlcz/142945 Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
  5. ^ Nevill-Manning, C. G.; Witten, I. H. (1997), "Identifying Hierarchical Structure in Sequences: A linear-time algorithm", Journal of Artificial Intelligence Research , 7 (4): 67– 82, arXiv : cs/9709102 , doi : 10.1613/jair.374 , hdl : 10289/1186 , S2CID 2957960 Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
  6. ^ Larsson, N. J.; Moffat, A. (2000), "Offline Dictionary-Based Compression" (PDF) , Proceedings of the IEEE , 88 (11): 1722– 1732, Bibcode : 2000IEEEP..88.1722L , doi : 10.1109/5.892708 Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
  7. ^ Conrad, Kennon J.; Wilson, Paul R. (2016). "Grammatical Ziv-Lempel Compression: Achieving PPM-Class Text Compression Ratios with LZ-Class Decompression Speed". 2016 Data Compression Conference (DCC) . p. 586. doi : 10.1109/DCC.2016.119 . ISBN 978-1-5090-1853-6 . S2CID 3116024 . Wikipedia revision 1348503317, retrieved 2026-11-18 · 1794956400.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Grammar-based code". 1776037276. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1348503317

JSON record · API collection · citation policy