Skip to main content
QUICK REVIEW

[Paper Review] SYNTAX: A computer program to compress a sequence and to estimate its information content

Miguel A. Jiménez-Montaño, W. Ebeling|arXiv (Cornell University)|Apr 5, 2002
Fractal and DNA sequence analysisBiochemistry, Genetics and Molecular Biology5 references6 citations
TL;DR

This paper introduces SYNTAX, a Fortran-based algorithm that compresses symbolic sequences by iteratively replacing frequent substrings with non-terminal symbols, using observed block-entropies to guide rule creation. The method estimates information content via a complexity measure that accounts for both frequency and self-information of substrings, achieving significant compression and improved complexity estimation over prior grammar complexity methods.

ABSTRACT

The determination of block-entropies is a well established method for the investigation of discrete data, also called symbols (7). There is a large variety of such symbolic sequences, ranging from texts written in natural languages, computer programs, neural spike trains, and biosequences. In this paper a new algorithm to construct a short context-free grammar (also called program or description) that generates a given sequence is introduced. It follows the general lines of a former algorithm, employed to compress biosequences (1,2) and to estimate the complexity of neural spike trains (4), which uses as valuation function the, so called, grammar complexity (2). The new algorithm employs the (observed) block-entropies instead. A variant, which employs a corrected "observed entropy", as discussed in (7) is also described. To illustrate its usefulness, applications of the program to the syntactic analysis of a sample biological sequences (DNA and RNA) is presented.

Motivation & Objective

  • To develop a new algorithm for compressing symbolic sequences by constructing context-free grammars based on observed block-entropies.
  • To estimate the information content of sequences by integrating observed self-information and frequency into a complexity measure.
  • To improve upon prior grammar complexity methods by distinguishing between terminal and non-terminal symbol information costs.
  • To demonstrate the utility of the method on binary and biological sequences (DNA/RNA) for syntactic analysis.
  • To provide a computationally efficient, extensible program for sequence compression and complexity estimation in diverse domains.

Proposed method

  • The algorithm computes observed block-entropies for substrings of length one and two to estimate self-information using the formula: I = log₂(kj/N), where kj is the frequency of a word and N is the total sequence length.
  • It identifies the most frequent substring of length two (frequency > freq_accept) and replaces all its occurrences with a new non-terminal symbol (e.g., S0).
  • The process repeats iteratively for longer substrings, replacing the longest repeated patterns, until no more patterns meet the frequency threshold.
  • After compression, rules with frequency below freq_accept are removed, and the complexity is recalculated at each step to find the minimum.
  • The final complexity is computed as the sum of self-information values of all rules, weighted by their frequency and structure.
  • The program is implemented in Fortran77, reads sequences as integers, and outputs the minimal complexity and compressed grammar.

Experimental results

Research questions

  • RQ1Can observed block-entropies be effectively used to guide the construction of context-free grammars for sequence compression?
  • RQ2How does using observed self-information improve the estimation of sequence information content compared to traditional grammar complexity?
  • RQ3What is the minimal complexity achievable for a given symbolic sequence using this entropy-guided compression approach?
  • RQ4Can this method detect structural patterns in biological sequences such as DNA and RNA through syntactic analysis?
  • RQ5How does the algorithm's performance compare to previous grammar complexity methods in terms of compression and complexity estimation?

Key findings

  • For the binary sequence '11110000111100001111000011110000', the algorithm achieved a final complexity of 11.2294 with a compressed length of 4 symbols.
  • The initial complexity was 32.0000, and after six iterations, the complexity was reduced by over 65%, demonstrating strong compression efficiency.
  • The final grammar rule S4 → (1 1 1 1 0 0 0 0) had a self-information of 0.807355, reflecting its high frequency (4 occurrences) and low information cost.
  • The algorithm successfully identified repeating patterns such as '11' (S1), '00' (S0), and composite structures like 'S1 S2' (S3), showing hierarchical structure detection.
  • The method outperforms previous grammar complexity approaches by accounting for the differing self-information of terminals and non-terminals in complexity calculation.
  • The program was successfully tested on a Sun SPARCstation IPC with 24 MB RAM, confirming its feasibility on modest hardware.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.