1. Introduction

 

The CTW encoder (and also the decoder) actually consists of two parts (figure 1.1):

 

 

 

Figure 1.1: CTW encoder

 

A very important property of the CTW (Context Tree Weighting) algorithm is the context tree, which is built dynamically during the encoding/decoding process:

 

When encoding a certain bit, the following steps are performed:

 

 

A "mini-course" on the basic properties of the CTW algorithm can be found in [IEEE], which is considered to be understood before reading this article. The main program file is ctw.c and the actual steps required for encoding and decoding can be found in ctwencdec.c.


Next chapter >>>