This document discusses arithmetic coding techniques for generating binary codes to represent sequences. It provides:
1) An overview of arithmetic coding, which is a lossless data compression technique that generates variable-length binary codes based on symbol probabilities.
2) Formulas and steps for encoding a sample sequence using arithmetic coding, calculating lower and upper bounds at each step based on cumulative distribution functions.
3) An example decoding a binary code back to the original sequence, calculating bounds and rescaling at each step.