Everything About ___
Live briefing

Everything about Grammar-based code

Lossless data compression algorithm

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, a grammar-based code transforms into a context-free grammar . The problem of finding a smallest grammar for an input sequence is known to be NP-hard, so many grammar-transform algorithms are proposed from theoretical and practical viewpoints. Generally, the produced grammar is further compressed by statistical encoders like arithmetic coding. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Grammar-based codeA 5-minute orientation
  2. Pick up a classic book: Natural Language Processing and Information SystemsThe most-reprinted book on the subject
  3. Read the landmark paper: A Grammar-Based Structural CNN Decoder for Code GenerationCited 80 times
  4. Go sideways: Straight-line grammarA closely related topic
  5. Go sideways: Grammar inductionA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🗂️ The subject at a glance

  1. Examples and characteristics
  2. Practical algorithms

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics