Variable-length codes can be used to encode letters or symbols using codewords of varying lengths. The document reviews mathematical basics relevant to analyzing source coding and data compression, including:
1. Discrete random variables and processes can be used to model information sources as sequences of random outcomes.
2. Probability theory provides the framework for characterizing information sources and measuring the performance of compression systems using statistical averages.
3. Stationary discrete Markov processes are a simple model for investigating coding of sources with memory, defined by their conditional probability distributions.