Sequitur algorithm: Difference between revisions

Content deleted Content added
Overview of the algorithm
Line 4:
 
== Method summary ==
The algorithm works by scanning a sequence of [[terminal symbol]]s, building a list of all the symbol pairs which it has read. Whenever a second occurrence of a pair is discovered, the two occurrences are replaced in the sequence by an invented [[non-terminalnonterminal symbol]], the list of symbol pairs is adjusted to match the new sequence, and scanning continues. Once the scanning has been completed, the list of symbol pairs can be interpreted as a grammar for the original sequence.
 
==External links==